Function at 0x42a682
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a691f
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 closesocket
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 0x42a6cf
xor eax, eax
jmp 0x42aa0f
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 [0x542984]
test eax, eax
je 0x42a768
mov ecx, dword [ebp - 0x184]
and ecx, 0xffff
cmp ecx, 0x5a4d
jne 0x42a768
push 0
push 0
mov edx, dword [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [0x5429a4]
cmp eax, dword [ebp - 0x148]
jne 0x42a768
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 [0x542984]
test eax, eax
je 0x42a768
cmp dword [ebp - 0x134], 0x4550
jne 0x42a768
mov ecx, dword [ebp - 0x12e]
and ecx, 0xffff
test ecx, ecx
jne 0x42a77c
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42aa0f
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.0042eab0
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 [0x5429a4]
mov dword [ebp - 0x140], 0
jmp 0x42a7ee
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 0x42a9e1
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 [0x542984]
test eax, eax
je 0x42a82f
cmp dword [ebp - 0x13c], 0x28
je 0x42a860
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.0042eae0
mov eax, dword [ebp - 0x1a0]
jmp 0x42aa0f
cmp dword [ebp + 0xc], 0
je 0x42a896
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 0x42a896
push 8
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042e940
add esp, 0xc
test eax, eax
jne 0x42a9dc
push 0
push 0
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call dword [0x5429a4]
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 [0x5429a4]
cmp eax, dword [ebp - 0x20]
jne 0x42a9c4
push 0
lea ecx, [ebp - 0x13c]
push ecx
push 0x1000
lea ecx, [ebp - 0x3c]
call fcn.00440fd0
push eax
mov edx, dword [ebp - 0x144]
push edx
call dword [0x542984]
test eax, eax
je 0x42a9c4
lea ecx, [ebp - 0x3c]
call fcn.00440fd0
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 0x42a9b9
mov ecx, dword [ebp - 0x194]
cmp ecx, dword [ebp - 0x198]
jne 0x42a959
mov dword [ebp - 0x138], 1
jmp 0x42a9b9
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 0x42a991
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 0x42a9b4
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 0x42a931
cmp dword [ebp - 0x138], 0
je 0x42a9c4
jmp 0x42a9e1
push 0
push 0
mov edx, dword [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [0x5429a4]
jmp 0x42a7df
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.0042eae0
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret