Function at 0x42e9f2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac93f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x42ea3f
xor eax, eax
jmp 0x42ed7f
push 0
lea ecx, [ebp - 0x13c]
push ecx
push 0x40
lea edx, [ebp - 0x184]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [0x54b4c4]
test eax, eax
je 0x42ead8
mov ecx, dword [ebp - 0x184]
and ecx, 0xffff
cmp ecx, 0x5a4d
jne 0x42ead8
push 0
push 0
mov edx, dword [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [0x54b4e4]
cmp eax, dword [ebp - 0x148]
jne 0x42ead8
push 0
lea ecx, [ebp - 0x13c]
push ecx
push 0xf8
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [0x54b4c4]
test eax, eax
je 0x42ead8
cmp dword [ebp - 0x134], 0x4550
jne 0x42ead8
mov ecx, dword [ebp - 0x12e]
and ecx, 0xffff
test ecx, ecx
jne 0x42eaec
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42ed7f
mov dword [ebp - 0x138], 0
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00432d30
mov dword [ebp - 4], 0
push 1
push 0
mov ecx, dword [ebp - 0x120]
and ecx, 0xffff
sub ecx, 0xe0
push ecx
mov edx, dword [ebp - 0x144]
push edx
call dword [0x54b4e4]
mov dword [ebp - 0x140], 0
jmp 0x42eb5e
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x12e]
and ecx, 0xffff
cmp dword [ebp - 0x140], ecx
jae 0x42ed51
push 0
lea edx, [ebp - 0x13c]
push edx
push 0x28
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [0x54b4c4]
test eax, eax
je 0x42eb9f
cmp dword [ebp - 0x13c], 0x28
je 0x42ebd0
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00432d60
mov eax, dword [ebp - 0x1a0]
jmp 0x42ed7f
cmp dword [ebp + 0xc], 0
je 0x42ec06
push 8
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x42ec06
push 8
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00432cc0
add esp, 0xc
test eax, eax
jne 0x42ed4c
push 0
push 0
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [0x54b4e4]
mov dword [ebp - 0x188], eax
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [0x54b4e4]
cmp eax, dword [ebp - 0x20]
jne 0x42ed34
push 0
lea ecx, [ebp - 0x13c]
push ecx
push 0x1000
lea ecx, [ebp - 0x3c]
call fcn.00478c10
push eax
mov edx, dword [ebp - 0x144]
push edx
call dword [0x54b4c4]
test eax, eax
je 0x42ed34
lea ecx, [ebp - 0x3c]
call fcn.00478c10
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x190]
add eax, dword [ebp - 0x13c]
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x190]
cmp eax, dword [ebp - 0x18c]
jae 0x42ed29
mov ecx, dword [ebp - 0x194]
cmp ecx, dword [ebp - 0x198]
jne 0x42ecc9
mov dword [ebp - 0x138], 1
jmp 0x42ed29
mov edx, dword [ebp - 0x194]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x190]
xor edx, edx
mov dl, byte [ecx]
cmp eax, edx
jne 0x42ed01
mov eax, dword [ebp - 0x190]
add eax, 1
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x194]
add ecx, 1
mov dword [ebp - 0x194], ecx
jmp 0x42ed24
mov edx, dword [ebp - 0x194]
sub edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x190]
sub eax, edx
add eax, 1
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x194], ecx
jmp 0x42eca1
cmp dword [ebp - 0x138], 0
je 0x42ed34
jmp 0x42ed51
push 0
push 0
mov edx, dword [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [0x54b4e4]
jmp 0x42eb4f
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00432d60
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret