Function at 0x300042f0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30216db8
push 0x3015f8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x3021ae88]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x18c], 0
or edi, 0xffffffff
test esi, esi
jne 0x3000435f
push str.VerifyCodeSection:_Error___no_address_supplied._n
call fcn.30009b00
add esp, 4
or eax, 0xffffffff
jmp 0x300046c6
call fcn.30003f40
test eax, eax
jle 0x30004357
mov ecx, esi
call fcn.300028c0
test eax, eax
je 0x30004357
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x30004357
mov esi, dword [esi + 0x3c]
add esi, dword [ebp - 0x188]
mov ecx, esi
call fcn.300028c0
test eax, eax
je 0x30004357
cmp dword [esi], 0x4550
jne 0x30004357
movzx ecx, word [esi + 0x14]
mov edx, dword [ebp - 0x188]
mov eax, dword [edx + 0x3c]
add eax, 0x18
add eax, ecx
mov dword [ebp - 0x194], eax
add eax, edx
mov dword [ebp - 0x190], eax
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x184], ebx
cmp ebx, 0xffffffff
je 0x30004357
push 0
lea eax, [ebp - 0x19c]
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
call esi
test eax, eax
je 0x300046ac
mov eax, 0x5a4d
cmp word [ebp - 0x88], ax
jne 0x300046ac
push 0
push 0
push dword [ebp - 0x4c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call ebx
push 0
lea eax, [ebp - 0x19c]
push eax
push 0xf8
lea eax, [ebp - 0x180]
push eax
push dword [ebp - 0x184]
call esi
test eax, eax
je 0x300046a6
push 0
push 0
push dword [ebp - 0x194]
push dword [ebp - 0x184]
call ebx
push 0
lea eax, [ebp - 0x19c]
push eax
push 0x28
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x184]
call esi
test eax, eax
je 0x300046a6
cmp dword [ebp - 0x34], 0
jne 0x30004496
push str.VerifyCodeSection:_SizeOfRawData_zero._n
call fcn.30009b00
add esp, 4
jmp 0x300046a6
mov edx, 1
mov ecx, dword [ebp - 0x164]
call fcn.300011a0
mov edi, eax
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x198], edi
test edi, edi
je 0x30004357
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x184]
call ebx
push 0
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp - 0x164]
push edi
push dword [ebp - 0x184]
call esi
test eax, eax
je 0x30004357
mov edx, dword [ebp - 0xe0]
add edx, dword [ebp - 0x188]
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x1a8], ecx
mov eax, dword [ebp - 0x188]
sub eax, dword [ebp - 0x14c]
mov dword [ebp - 0x194], eax
mov dword [ebp - 4], 0
xor ebx, ebx
mov edi, edi
cmp ecx, ebx
jbe 0x30004593
mov eax, dword [edx + 4]
test eax, eax
je 0x30004593
lea esi, [eax - 8]
shr esi, 1
mov dword [ebp - 0x1a0], esi
xor ecx, ecx
mov dword [ebp - 0x1a4], ecx
cmp ecx, esi
jae 0x30004579
movzx eax, word [edx + ecx*2 + 8]
test ax, ax
je 0x30004576
and eax, 0xfff
add eax, dword [edx]
mov edi, dword [ebp - 0x190]
sub eax, dword [edi + 0xc]
cmp eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x18c]
jae 0x30004576
mov esi, dword [ebp - 0x194]
add dword [eax + edi], esi
mov esi, dword [ebp - 0x1a0]
inc ecx
jmp 0x30004538
add edx, dword [edx + 4]
mov dword [ebp - 0x1b4], edx
add ebx, dword [edx + 4]
mov dword [ebp - 0x1b8], ebx
mov ecx, dword [ebp - 0x1a8]
jmp 0x30004520
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x188]
jmp 0x300045de
mov eax, dword [ebp - 0x190]
mov eax, dword [eax + 0xc]
add eax, esi
mov dword [ebp - 0x198], eax
mov edx, dword [ebp - 0x164]
mov ecx, eax
call fcn.30003a40
mov ebx, eax
xor ecx, ecx
xor esi, esi
mov edx, dword [ebp - 0x100]
test edx, edx
je 0x3000464d
mov eax, dword [ebp - 0x188]
add eax, 0x10
add edx, eax
mov eax, dword [edx]
mov esi, eax
test eax, eax
je 0x3000464d
mov edi, dword [ebp - 0x188]
add eax, edi
cmp dword [eax], 0
je 0x3000463b
lea esp, [esp]
add ecx, 4
lea eax, [eax + 4]
cmp dword [eax], 0
jne 0x30004630
add ecx, 4
add edx, 0x14
mov eax, dword [edx]
test eax, eax
jne 0x30004625
mov edi, dword [ebp - 0x18c]
test esi, esi
je 0x3000467c
mov eax, dword [ebp - 0x190]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x3000467c
lea eax, [edx + ebx]
cmp esi, eax
jae 0x3000467c
push ecx
mov eax, dword [ebp - 0x188]
add eax, esi
push eax
sub esi, edx
add esi, edi
push esi
call fcn.30160350
add esp, 0xc
push ebx
push dword [ebp - 0x198]
push edi
call dword [0x3026c330]
cmp eax, ebx
jne 0x30004695
mov edi, 1
jmp 0x300046a6
push ebx
push eax
push str.VerifyCodeSection:_Executable_code_does_not_match__0x_x_of_0x_x_matching_n
call fcn.30009b00
add esp, 0xc
xor edi, edi
mov ebx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x300046bd
mov ecx, eax
call fcn.300011f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.3015dd6d
mov esp, ebp
pop ebp
ret