Function at 0x46b9bc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x144], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e1c
mov eax, dword [ebp + 8]
call fcn.00404e1c
xor eax, eax
push ebp
push 0x46bd6e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x5a4d
jne 0x46bd40
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x46bd40
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x44
call fcn.00403448
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x10
call fcn.00403448
mov dword [ebp - 0x74], 0x44
dec esi
jne 0x46ba91
call dword [0x4becf8]
mov edx, eax
lea eax, [ebp - 0x144]
call fcn.00404b94
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 4]
call fcn.0046a134
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404e2c
push eax
push 0
call dword [0x4becfc]
test al, al
je 0x46bd40
mov dword [ebp - 0x140], 0x10007
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x148]
call fcn.00409424
mov eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
call fcn.0046b978
push dword [ebp - 0x150]
push 0x46bd88
push dword [ebp + 8]
push 0x46bd88
push 0x46bd94
push 0x46bd88
lea eax, [ebp - 0x14c]
mov edx, 6
call fcn.00404d30
mov edx, dword [ebp - 0x14c]
pop eax
call fcn.0046b8ec
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [0x4bed00]
test al, al
je 0x46bd40
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x9c]
add eax, 8
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [0x4bed04]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
cmp eax, dword [ebp - 0x14]
jne 0x46bbbf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [0x4becf0]
test eax, eax
jne 0x46bba0
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [0x4bed0c]
mov dword [ebp - 0x18], eax
jmp 0x46bbe1
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
push eax
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [0x4bed0c]
mov dword [ebp - 0x18], eax
jmp 0x46bbe1
push 0x40
push 0x3000
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [0x4bed0c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46bd40
xor edx, edx
push ebp
push 0x46bc0d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x46bda4
call fcn.00409474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46bc22
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x34]
mov eax, dword [ebp - 0x18]
cmp edx, eax
je 0x46bc6d
sub eax, edx
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0046b680
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, 0xf8
mov edx, dword [ebp - 0x10]
call fcn.00407a70
xor edx, edx
push ebp
push 0x46bc8f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x46bda4
call fcn.00409474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46bca2
mov eax, 0x65
mov edx, 0x29bb
dec eax
jne 0x46bca7
cmp edx, 0xe6
je 0x46bcef
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [0x4bed10]
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x9c]
add eax, 8
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [0x4bed10]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [0x4bed14]
mov eax, dword [ebp - 0x2c]
push eax
call dword [0x4bed18]
mov eax, 0x65
dec eax
jne 0x46bd1e
xor ecx, ecx
mov dl, 1
mov eax, dword [0x457d54]
call fcn.0045ac9c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x50]
mov eax, dword [ebp - 8]
call fcn.00402f0c
mov ebx, dword [ebp - 0x2c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bd75
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.004049c0
lea eax, [ebp - 4]
call fcn.0040499c
lea eax, [ebp + 8]
call fcn.0040499c
ret