Function at 0x4168a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b8d8
push 0x411bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov edx, dword [esi + 8]
mov dword [ebp - 0x1c], edx
test dl, 3
je 0x4168e7
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
cmp edx, ecx
jb 0x4168fc
cmp edx, dword [eax + 4]
jb 0x4168d4
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x416bf3
xor edi, edi
xor eax, eax
mov ecx, edx
mov esi, dword [ecx]
cmp esi, 0xffffffff
je 0x41691c
cmp esi, eax
jae 0x4168d4
cmp dword [ecx + 4], 0
je 0x416927
mov edi, 1
add eax, 1
add ecx, 0xc
cmp eax, ebx
jbe 0x416911
test edi, edi
je 0x416944
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x24]
jb 0x4168d4
cmp eax, ecx
jae 0x4168d4
mov eax, edx
and eax, 0xfffff000
mov dword [ebp + 8], eax
xor edi, edi
mov ecx, dword [0x432358]
cmp edi, ecx
jge 0x416a5f
mov esi, dword [edi*8 + 0x432360]
mov ebx, dword [edi*8 + 0x432364]
cmp esi, eax
jne 0x416ada
mov dword [ebp - 4], 0
mov ecx, ebx
call fcn.00416740
test eax, eax
je 0x416a58
push edx
mov ecx, dword [ebp - 0x20]
call fcn.004167b0
add esp, 4
test eax, eax
je 0x416a55
mov dword [ebp - 4], 0xffffffff
test edi, edi
jle 0x416bf3
mov eax, 1
mov ecx, 0x4323e0
xchg dword [ecx], eax
test eax, eax
jne 0x416bf3
mov eax, dword [ebp + 8]
cmp dword [edi*8 + 0x432360], eax
je 0x416a13
mov ecx, dword [0x432358]
lea edi, [ecx - 1]
test edi, edi
jl 0x416a02
lea ebx, [ebx]
cmp dword [edi*8 + 0x432360], eax
je 0x4169f0
sub edi, 1
jns 0x4169e0
jmp 0x4169fe
mov esi, dword [edi*8 + 0x432360]
mov ebx, dword [edi*8 + 0x432364]
test edi, edi
jge 0x416a15
cmp ecx, 0x10
jge 0x416a10
add ecx, 1
mov dword [0x432358], ecx
lea edi, [ecx - 1]
test edi, edi
jle 0x416a47
xor eax, eax
test edi, edi
jl 0x416a47
lea ecx, [ecx]
mov ecx, dword [eax*8 + 0x432360]
mov edx, dword [eax*8 + 0x432364]
mov dword [eax*8 + 0x432360], esi
mov dword [eax*8 + 0x432364], ebx
mov esi, ecx
mov ebx, edx
add eax, 1
cmp eax, edi
jle 0x416a20
xor edx, edx
mov eax, 0x4323e0
xchg dword [eax], edx
jmp 0x416bf3
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416bf3
mov eax, dword [ebp - 0x28]
cmp eax, 0x1000000
je 0x416b08
cmp eax, 0x20000
jne 0x416af4
cmp dword [0x43235c], 0
jne 0x416aeb
mov dword [0x4323e8], 0x94
push 0x4323e8
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x416ae2
mov dword [0x43235c], 1
jmp 0x416aeb
add edi, 1
jmp 0x416956
cmp dword [0x43235c], 0
je 0x416b08
cmp dword [0x4323f8], 1
je 0x416b08
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x3c]
cmp word [ebx], 0x5a4d
jne 0x416af4
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x416af4
cmp word [eax + 0x18], 0x10b
jne 0x416af4
test byte [ebp - 0x2c], 0xcc
je 0x416b4e
mov edi, dword [ebp - 0x1c]
sub edi, ebx
mov eax, ebx
call fcn.00416770
test eax, eax
je 0x4168d4
test dword [eax + 0x24], 0x80000000
jne 0x4168d4
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004167b0
add esp, 4
test eax, eax
je 0x4168d4
mov edx, 1
mov eax, 0x4323e0
xchg dword [eax], edx
test edx, edx
jne 0x416bf3
mov edi, dword [0x432358]
mov eax, edi
test edi, edi
jle 0x416b99
lea ecx, [edi*8 + 0x432358]
mov edx, dword [ecx]
cmp edx, dword [ebp + 8]
je 0x416b99
sub eax, 1
sub ecx, 8
test eax, eax
jg 0x416b88
test eax, eax
jne 0x416bea
cmp edi, 0xf
mov esi, 0xf
jg 0x416ba9
mov esi, edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
test esi, esi
jl 0x416bdc
mov eax, 0x432360
lea ebx, [esi + 1]
jmp 0x416bc0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, esi
mov edx, edi
add eax, 8
sub ebx, 1
jne 0x416bc0
mov edi, dword [0x432358]
cmp edi, 0x10
jge 0x416bea
add edi, 1
mov dword [0x432358], edi
xor eax, eax
mov ecx, 0x4323e0
xchg dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret