Function at 0x533a28
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [0x5b126c]
cmp eax, 1
je 0x533a4c
mov eax, 0x1000000
jmp 0x533c4a
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
call dword [0x5b1274]
test eax, eax
jne 0x533a67
mov eax, 0x200
jmp 0x533c4a
lea eax, [ebp - 0x74]
push eax
call dword [0x5b1144]
lea eax, [ebp - 0x84]
push eax
call dword [0x5b1124]
mov esi, dword [0x5b10d8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x74]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x84]
push eax
call esi
mov esi, dword [ebp - 0x24]
sub esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sbb edi, dword [ebp - 0x18]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov eax, dword [ebp + ebx*4 - 0x30]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
sub ecx, esi
sbb edx, edi
inc ebx
cmp ebx, 3
mov dword [eax], ecx
mov dword [eax + 4], edx
jl 0x533abb
mov ecx, dword [ebp - 0x64]
xor eax, eax
xor edi, edi
mov edx, ecx
inc eax
and edx, eax
mov dword [ebp - 8], edi
je 0x533ae7
mov dword [ebp - 8], eax
test cl, 2
je 0x533af0
or dword [ebp - 8], 2
test cl, 4
je 0x533af9
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x533b04
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x533b0d
or dword [ebp - 8], 0x20
cmp eax, edi
je 0x533b1a
or dword [ebp - 8], 0x40000000
jmp 0x533b21
or dword [ebp - 8], 0x80000000
or dword [ebp - 8], 0x1000000
cmp edx, edi
jne 0x533b33
or dword [ebp - 8], 0x800000
mov ebx, dword [ebp + 8]
push edi
push ebx
call dword [0x5b1114]
mov dword [ebp - 0x14], eax
cmp eax, 0x28
jbe 0x533bd5
mov esi, dword [0x5b1180]
push edi
push edi
push edi
push ebx
call esi
push edi
mov edi, dword [0x5b1118]
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
push 0
push 0
push 0x24
push ebx
call esi
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push ebx
call edi
mov eax, 0x54ad
cmp word [ebp - 0xc], ax
jne 0x533bd5
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x14], ecx
jbe 0x533bd5
push 0
push 0
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x20]
cmp eax, 0x5a4d
je 0x533bce
cmp eax, 0x454e
je 0x533bce
cmp eax, 0x454c
je 0x533bce
cmp eax, 0x4550
jne 0x533bd5
or dword [ebp - 8], 0x400000
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x533be1
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x533bed
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x533c20
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.00533998
push dword [ebp - 0x4c]
mov dword [esi], eax
push dword [ebp - 0x50]
call fcn.00533998
push dword [ebp - 0x5c]
mov dword [esi + 4], eax
push dword [ebp - 0x60]
call fcn.00533998
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x533c48
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [0x5b1270]
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret