Function at 0x464d38
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe14
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040580c
mov eax, dword [ebp - 8]
call fcn.0040580c
xor eax, eax
push ebp
push 0x465085
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
push 0
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 4]
call fcn.0040581c
push eax
call sub.kernel32.dll_OpenFile
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x46503c
push dword fs:[edx]
mov dword fs:[edx], esp
mov cl, 2
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00425450
mov esi, eax
mov ebx, 0x40
cmp ebx, esi
jge 0x465026
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00425450
lea edx, [ebp - 0x68]
mov ecx, ebx
mov eax, dword [ebp - 0x18]
call fcn.00422d5c
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
cmp edx, dword [esp + 4]
jne 0x464de6
cmp eax, dword [esp]
pop edx
pop eax
jne 0x465026
cmp word [ebp - 0x68], 0x5a4d
jne 0x465026
mov eax, dword [ebp - 0x2c]
cmp esi, eax
jle 0x465026
xor ecx, ecx
mov edx, eax
mov eax, dword [ebp - 0x18]
call fcn.00425450
lea edx, [ebp - 0x1e8]
mov ecx, 0xf8
mov eax, dword [ebp - 0x18]
call fcn.00422d5c
cmp dword [ebp - 0x1e8], 0x4550
jne 0x465026
mov eax, dword [ebp - 0x1b4]
mov esi, dword [ebp - 0x198]
mov ebx, dword [ebp - 0x194]
push 4
push 0x3000
push esi
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
test edi, edi
jne 0x465026
push 4
push 0x3000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
test edi, edi
je 0x465026
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00425450
mov esi, edi
mov edx, esi
mov ecx, ebx
mov eax, dword [ebp - 0x18]
call fcn.00422d5c
mov eax, dword [esi + 0x3c]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 6]
push eax
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x464d18]
call fcn.00406880
add esp, 4
mov eax, dword [ebp - 0x1c]
add eax, 0xf8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
call fcn.004066cc
test eax, eax
jl 0x464f92
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*8]
mov edx, 8
call fcn.00405aac
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*8]
call fcn.0040587c
mov edx, eax
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov ecx, 8
call fcn.00403168
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*8]
call fcn.0040581c
call fcn.0040a064
mov edx, eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*8]
call fcn.00405aac
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*8 + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [edx + esi*8 + 8], eax
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*8 + 0xc]
add eax, edi
mov edx, dword [ebp - 0x10]
mov dword [edx + esi*8 + 4], eax
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*8 + 0x14]
mov edx, dword [ebp - 0x10]
mov dword [edx + esi*8 + 0xc], eax
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + eax*8 + 0x14]
xor ecx, ecx
mov eax, dword [ebp - 0x18]
call fcn.00425450
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + esi*8 + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + esi*8 + 4]
mov eax, dword [ebp - 0x18]
call fcn.00422d5c
inc ebx
dec dword [ebp - 0x28]
jne 0x464ed8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x465019
mov ebx, eax
add ebx, edi
mov eax, dword [ebx + 0x20]
add eax, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x14]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x464cf8]
call fcn.00406880
add esp, 4
mov eax, dword [ebx + 0x18]
dec eax
test eax, eax
jl 0x465019
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp - 0xc]
lea eax, [eax + esi*8]
mov edx, ebx
add edx, edx
add edx, edx
add edx, dword [ebp - 0x24]
mov edx, dword [edx]
add edx, edi
call fcn.00405584
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + esi*8]
lea edx, [ebp - 0x1ec]
call fcn.00409554
mov eax, dword [ebp - 0x1ec]
mov edx, dword [ebp - 8]
call fcn.004057b4
jne 0x465013
mov byte [ebp - 0x11], 1
jmp 0x465019
inc ebx
dec dword [ebp - 0x28]
jne 0x464fd0
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465043
mov eax, dword [ebp - 0x18]
call fcn.0042531c
ret