Function at 0x4679a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0x5919ad
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push esi
cmp edx, 0x200
jb 0x467c0f
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x467c0f
mov esi, dword [ecx + 0x3c]
cmp esi, 0x40
jb 0x467c0f
lea eax, [edx - 0xf8]
cmp esi, eax
jae 0x467c0f
cmp dword [esi + ecx], 0x4550
jne 0x467c0f
cmp dword [ecx + 0x40], 0x564c56
je 0x467a23
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 0x467a3d
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 0x467bfa
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 0x467a68
mov dword [ebp + 0xc], eax
jmp 0x467a7b
mov esi, 0x20b
cmp dx, si
jne 0x467bfa
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.0056cd70
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x467ad7
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 0x467b04
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 0x467b10
cmp edi, dword [ebp + 0x14]
jae 0x467b99
mov ebx, dword [esi + 0x48]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0x5b3f54
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
push dword [eax + edi*4]
call fcn.00447770
test al, al
jne 0x467b55
xor bl, bl
jmp 0x467b81
lea ecx, [ebp - 0x30]
call fcn.004472d0
test al, al
jne 0x467b65
xor bl, bl
jmp 0x467b81
lea eax, [ebp - 0x30]
push eax
push 0x80
lea eax, [ebp - 0xb0]
push eax
push ebx
push esi
call fcn.00455fc0
add esp, 0x14
mov bl, al
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00446f70
inc edi
test bl, bl
je 0x467b10
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 0x467bcb
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 0x467be3
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