Function at 0x529cb8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040aa80
xor eax, eax
push ebp
push 0x2199441
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x219940b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.0040b374
mov eax, dword [ebp - 0x80]
call fcn.00529c18
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x529d7a
call fcn.004e8e54
mov edx, dword [0x229af38]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0x4550
jne 0x529d7a
mov eax, dword [ebp - 0x14]
cmp word [eax + 4], 0x14c
jne 0x529d7a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x78]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 0x7c]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0
je 0x529d75
mov eax, dword [ebp - 4]
add dword [ebp - 0x1c], eax
jmp 0x529d7a
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x529d86
cmp dword [ebp - 0x1c], 0
jne 0x529d93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52a015
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, 0x28
call fcn.00407a70
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
inc eax
add eax, eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
inc eax
shl eax, 2
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
inc eax
push eax
lea eax, [ebp - 0x48]
mov ecx, 1
mov edx, dword [0x219ddb0]
call fcn.0040cf74
add esp, 4
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
dec eax
test eax, eax
jb 0x529e71
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x34], 0
mov eax, 8
call fcn.00407a70
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 0x44]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx*8]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov edx, dword [edx + ecx*4]
add edx, dword [ebp - 4]
call fcn.0040b6f8
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
mov dword [eax + edx*8 + 4], ecx
inc dword [ebp - 0x34]
dec dword [ebp - 0x5c]
jne 0x529e18
mov eax, 8
call fcn.00407a70
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 4]
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov edx, dword [ebp - 0x44]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x48]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x4c]
call fcn.0040b6f8
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [edx + eax*8 + 4], ecx
lea eax, [ebp - 0x48]
call fcn.00529b84
mov edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x58]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0052998c
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x50], 0
jne 0x529f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52a015
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x529f1f
mov eax, dword [ebp - 0x60]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
dec eax
test eax, eax
jb 0x529f73
inc eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + edx*8 + 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + edx*8 + 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x34]
mov cx, word [ebp - 0x34]
mov word [eax + edx*2], cx
inc dword [ebp - 0x34]
dec dword [ebp - 0x5c]
jne 0x529f32
lea eax, [ebp - 0x68]
push eax
push 2
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.004ea848
test eax, eax
je 0x52a001
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x2c]
inc dword [eax + 0x14]
mov eax, dword [ebp - 0x2c]
inc dword [eax + 0x18]
lea eax, [ebp - 0x30]
push eax
push 4
push 0x28
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004ea848
test eax, eax
je 0x52a001
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov ecx, 0x28
call fcn.00407c34
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 0x28
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004ea848
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52a015
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2199448
lea eax, [ebp - 0x80]
call fcn.0040a9c0
lea eax, [ebp - 0x48]
mov edx, dword [0x219ddb0]
call fcn.0040d098
lea eax, [ebp - 8]
call fcn.0040a99c
ret