Function at 0x467e00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x5922cd
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push esi
cmp edx, 0x200
jb 0x46806f
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x46806f
mov esi, dword [ecx + 0x3c]
cmp esi, 0x40
jb 0x46806f
lea eax, [edx - 0xf8]
cmp esi, eax
jae 0x46806f
cmp dword [esi + ecx], 0x4550
jne 0x46806f
cmp dword [ecx + 0x40], 0x564c56
je 0x467e83
mov eax, 2
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x44], 1
je 0x467e9d
mov eax, 4
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
cmp edx, dword [ecx + 0x48]
jb 0x46805a
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
lea eax, [ecx + 0x18]
add eax, esi
mov dword [ebp - 0x1c], ebx
mov esi, 0x10b
movzx edx, word [eax]
cmp dx, si
jne 0x467ec8
mov dword [ebp + 0xc], eax
jmp 0x467edb
mov esi, 0x20b
cmp dx, si
jne 0x46805a
mov ebx, eax
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ecx + 0x50]
mov ecx, 0x20
push 0x80
mov esi, eax
mov dword [ebp - 0x20], eax
lea edi, [ebp - 0xb0]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0056cde0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x467f37
mov ecx, dword [eax + 0x40]
mov dword [eax + 0x40], 0
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x84]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ecx
jmp 0x467f64
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x40], 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x90]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x94]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], eax
mov esi, dword [ebp + 8]
xor bl, bl
xor edi, edi
jmp 0x467f70
cmp edi, dword [ebp + 0x14]
jae 0x467ff9
mov ebx, dword [esi + 0x48]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0x5d40dc
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
push dword [eax + edi*4]
call fcn.004476d0
test al, al
jne 0x467fb5
xor bl, bl
jmp 0x467fe1
lea ecx, [ebp - 0x30]
call fcn.00447230
test al, al
jne 0x467fc5
xor bl, bl
jmp 0x467fe1
lea eax, [ebp - 0x30]
push eax
push 0x80
lea eax, [ebp - 0xb0]
push eax
push ebx
push esi
call fcn.00456040
add esp, 0x14
mov bl, al
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00446ef0
inc edi
test bl, bl
je 0x467f70
mov edi, dword [ebp - 0x20]
lea esi, [ebp - 0xb0]
mov eax, dword [ebp + 0xc]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x10]
pop edi
test eax, eax
je 0x46802b
mov dword [eax + 0x40], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x80], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x84], ecx
jmp 0x468043
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x40], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x90], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x94], ecx
xor eax, eax
test bl, bl
pop ebx
sete al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
pop ebx
mov eax, 3
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, 6
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret