Function at 0x10016480
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x100292b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10031708]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10c]
cmp eax, 0x8b0
jne 0x10016587
mov byte [ebp], 0
push 0xff
push 0
lea eax, [ebp + 1]
push eax
call fcn.10019d20
add esp, 0xc
mov ecx, dword [ebp + 0x118]
push ecx
push 7
call fcn.10017120
add esp, 4
push eax
lea edx, [ebp]
push edx
call fcn.1001a7e7
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 0xf001f
call fcn.10002920
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001689e
push 0
push 0
push 0
push 6
push eax
call fcn.10002760
mov esi, eax
lea ecx, [esi + 1]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10016535
sub eax, edi
mov edi, eax
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10016547
sub eax, ebx
mov edx, dword [ebp + 0x114]
sub edx, edi
sub edx, 2
push edx
lea eax, [eax + esi + 2]
push eax
call fcn.10016420
add esp, 8
mov byte [esi], al
push esi
call fcn.10002830
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x100168a0
cmp eax, 0x8b5
jne 0x10016627
mov byte [ebp], 0
push 0xff
push 0
lea edx, [ebp + 1]
push edx
call fcn.10019d20
add esp, 0xc
mov eax, dword [ebp + 0x118]
push eax
push 7
call fcn.10017120
add esp, 4
push eax
lea ecx, [ebp]
push ecx
call fcn.1001a7e7
add esp, 0xc
lea edx, [ebp]
push edx
push 0
push 0xf001f
call fcn.10002920
mov edi, eax
test edi, edi
je 0x1001689e
push 0
push 0
push 0
push 6
push edi
call fcn.10002760
mov esi, eax
mov eax, dword [esi + 1]
mov ecx, dword [esi + 5]
mov edx, dword [ebp + 0x114]
add edx, 0xfffffff7
push edx
lea edx, [esi + 9]
push ecx
push eax
call fcn.10013b50
add esp, 0xc
mov byte [esi], al
push esi
call fcn.10002830
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x100168a0
cmp eax, 0x8b1
jne 0x100166d8
mov byte [ebp], 0
push 0xff
push 0
lea eax, [ebp + 1]
push eax
call fcn.10019d20
add esp, 0xc
mov ecx, dword [ebp + 0x118]
push ecx
push 8
call fcn.10017120
add esp, 4
push eax
lea edx, [ebp]
push edx
call fcn.1001a7e7
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 0xf001f
call fcn.10002920
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001689e
push 0
push 0
push 0
push 6
push eax
call fcn.10002760
mov esi, eax
lea ecx, [esi + 1]
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100166a0
sub eax, edi
mov edi, eax
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100166b2
sub eax, ebx
mov edx, dword [ebp + 0x114]
sub edx, edi
sub edx, 2
push edx
lea eax, [eax + esi + 2]
push eax
call fcn.10016450
jmp 0x10016568
cmp eax, 0x8b6
jne 0x10016778
mov byte [ebp], 0
push 0xff
push 0
lea edx, [ebp + 1]
push edx
call fcn.10019d20
add esp, 0xc
mov eax, dword [ebp + 0x118]
push eax
push 8
call fcn.10017120
add esp, 4
push eax
lea ecx, [ebp]
push ecx
call fcn.1001a7e7
add esp, 0xc
lea edx, [ebp]
push edx
push 0
push 0xf001f
call fcn.10002920
mov edi, eax
test edi, edi
je 0x1001689e
push 0
push 0
push 0
push 6
push edi
call fcn.10002760
mov esi, eax
mov eax, dword [esi + 1]
mov edx, dword [esi + 5]
mov ecx, dword [ebp + 0x114]
add ecx, 0xfffffff7
lea ebx, [esi + 9]
push ebx
push edx
push eax
call fcn.10013bd0
add esp, 0xc
mov byte [esi], al
push esi
call fcn.10002830
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x100168a0
cmp eax, 0x8b2
jne 0x1001695e
mov ecx, dword [ebp + 0x114]
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x2c], eax
movzx edi, cx
and edi, 0xffffefff
mov dword [ebp - 0x28], edi
mov byte [ebp], 0
push 0xff
push 0
lea eax, [ebp + 1]
push eax
call fcn.10019d20
add esp, 0xc
mov ecx, dword [ebp + 0x118]
push ecx
push 9
call fcn.10017120
add esp, 4
push eax
lea edx, [ebp]
push edx
call fcn.1001a7e7
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 0xf001f
call fcn.10002920
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001689e
push 0
push 0
push 0
push 6
push eax
call fcn.10002760
mov esi, eax
mov dword [ebp - 0x20], esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10016803
sub eax, edx
lea ecx, [eax + esi + 1]
mov dword [ebp - 0x24], ecx
mov eax, ecx
lea ebx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10016820
sub eax, ebx
lea ebx, [eax + ecx + 1]
cmp edi, 4
jne 0x1001683c
lea ecx, [ebx + 2]
mov dword [ebp - 0x18], ecx
jmp 0x10016853
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10016841
sub eax, edx
lea edx, [eax + ebx + 1]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x118]
push eax
push 6
call fcn.10017120
add esp, 4
push eax
lea ecx, [ebp]
push ecx
call fcn.1001a7e7
add esp, 0xc
lea edx, [ebp]
push edx
push 0xf4248
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x100168c7
push esi
call fcn.10002830
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.10019cd6
add ebp, 0x104
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0
push 6
push edi
call fcn.10002760
mov esi, eax
mov dword [ebp - 0x1c], esi
mov eax, edi
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [ebp - 4], 0
push 0xf4240
lea ecx, [esi + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.1001b6cd
add esp, 4
push eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov edx, ebx
mov ecx, dword [ebp - 0x20]
call fcn.10014790
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
jmp 0x1001693b
mov eax, dword [ebp - 0x20]
push eax
call fcn.10002830
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10002830
mov eax, 1
jmp 0x100168a0
cmp eax, 0x8b4
jne 0x1001698e
xor ecx, ecx
mov esi, dword [ebp + 0x114]
mov eax, dword [ebp + 0x118]
cdq
or ecx, eax
or esi, edx
mov edx, ecx
or edx, esi
je 0x1001689e
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100168a0
cmp eax, 0x8b3
jne 0x10016a46
mov byte [ebp], 0
push 0xff
push 0
lea eax, [ebp + 1]
push eax
call fcn.10019d20
add esp, 0xc
mov ecx, dword [ebp + 0x118]
push ecx
push 0xa
call fcn.10017120
add esp, 4
push eax
lea edx, [ebp]
push edx
call fcn.1001a7e7
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 0xf001f
call fcn.10002920
mov edi, eax
test edi, edi
je 0x1001689e
push 0
push 0
push 0
push 6
push edi
call fcn.10002760
mov esi, eax
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
mov dword [esi + 8], 0
mov ecx, eax
or ecx, edx
je 0x10016a2f
cmp word [eax], 0x5a4d
jne 0x10016a2f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10016a2f
mov edx, dword [ecx + 0x50]
mov dword [esi + 8], edx
push esi
call fcn.10002830
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x100168a0
cmp eax, 0x8b7
jne 0x1001689e
mov byte [ebp], 0
push 0xff
push 0
lea eax, [ebp + 1]
push eax
call fcn.10019d20
add esp, 0xc
mov ecx, dword [ebp + 0x118]
push ecx
push 0xb
call fcn.10017120
add esp, 4
push eax
lea edx, [ebp]
push edx
call fcn.1001a7e7
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 0xf001f
call fcn.10002920
mov edi, eax
test edi, edi
je 0x1001689e
push 0
push 0
push 0
push 6
push edi
call fcn.10002760
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x2c], ecx
lea edx, [esi + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
mov dword [esi + 4], 0
push esi
call fcn.10002830
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x100168a0