Function at 0x532450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x553ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5973cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x2c]
mov ecx, ebx
call fcn.0053b840
mov al, byte [esi + 8]
shr al, 3
xor edi, edi
test al, 1
je 0x5324a8
movzx eax, byte [esi + 0x62]
mov dword [esi + 0x20], edi
cmp eax, 1
je 0x5324a8
cmp eax, 2
je 0x5324a8
cmp eax, 3
je 0x5324a8
mov dword [esi + 0x24], edi
movzx ecx, word [esi + 0xa]
lea eax, [esi + 0x70]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [eax + 4], edi
je 0x5324c1
cmp dword [eax + 8], edi
ja 0x5324c9
push eax
mov ecx, esi
call fcn.00531710
cmp dword [esi + 0x84], edi
lea eax, [esi + 0x80]
je 0x5324dc
cmp dword [eax + 8], edi
ja 0x5324e4
push eax
mov ecx, esi
call fcn.00531130
mov eax, dword [esi + 0x88]
cmp eax, 0xffff
jg 0x53250d
cmp dword [esi + 0x78], 0xffff
jg 0x53250d
mov ecx, ebx
call fcn.0053b6f0
cmp eax, 0xffff
setle al
test al, al
jne 0x53251a
mov ecx, dword [esi + 0x68]
push 0xd3
call fcn.005345e0
mov eax, dword [esi + 0x78]
mov ecx, ebx
mov word [esi + 0x60], ax
call fcn.0053b6f0
movzx edx, word [esi + 0x60]
mov ebp, eax
lea eax, [edx + ebp + 0x1e]
push edi
push eax
lea ecx, [esp + 0x24]
mov dword [esi + 0x64], eax
call fcn.00533080
mov eax, dword [0x598c24]
mov cx, word [esp + 0x14]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x20]
mov dword [edi], eax
movzx eax, word [esi + 6]
mov word [edi + 4], ax
movzx eax, word [esi + 8]
mov word [edi + 6], ax
mov word [edi + 8], cx
movzx eax, word [esi + 0xc]
mov word [edi + 0xa], ax
movzx eax, word [esi + 0xe]
mov word [edi + 0xc], ax
cmp byte [esi + 0x63], 0
je 0x532582
xor eax, eax
jmp 0x532585
mov eax, dword [esi + 0x10]
mov dword [edi + 0xe], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x12], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x16], eax
movzx eax, word [esi + 0x60]
mov word [edi + 0x1a], ax
mov word [edi + 0x1c], bp
movzx edx, word [esi + 0x60]
mov eax, dword [esi + 0x74]
push edx
push eax
lea eax, [edi + 0x1e]
push eax
call fcn.00509260
add esp, 0xc
test ebp, ebp
je 0x5325c9
movzx ecx, word [esi + 0x60]
lea edx, [ecx + edi + 0x1e]
push edx
mov ecx, ebx
call fcn.0053b6a0
mov eax, dword [esi + 0x64]
push 1
push eax
push edi
mov edi, dword [esp + 0x44]
mov ecx, edi
call fcn.00538e90
mov ecx, dword [edi + 0x3c]
and ecx, 0x70
cmp cl, 0x70
jne 0x5325ea
xor eax, eax
jmp 0x5325ee
movzx eax, word [edi + 0x24]
mov ecx, edi
mov word [esi + 0x1c], ax
call fcn.00531ee0
sub eax, dword [esi + 0x64]
mov ecx, ebx
mov dword [esi + 0x28], eax
call fcn.0053b840
mov edi, dword [esp + 0x18]
mov esi, dword [edi + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x532641
cmp dword [esi + 0x18], 8
jb 0x532625
mov eax, dword [esi + 4]
push eax
call fcn.00505cfe
add esp, 4
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push esi
mov word [esi + 4], dx
call fcn.00505cfe
add esp, 4
mov dword [edi + 0xc], ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.005330b0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4