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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [esp + 0x64]
mov eax, dword [0x58b570]
push ebx
mov ebx, dword [edx]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
je 0x5324aa
call eax
test eax, eax
je 0x5324aa
mov eax, dword [esp + 0x74]
pop edi
mov dword [eax], 0x55
xor eax, eax
pop ebx
add esp, 0x5c
ret 0x3c
mov ecx, dword [esp + 0x98]
mov eax, 0xfffffffe
push esi
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x10]
lea edx, [ecx + 6]
mov dword [esp + 0x64], ebx
mov dword [esp + 0xc], edx
cmp byte [ebx], 0x85
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], eax
jne 0x53251a
xor eax, eax
mov ah, byte [ebx + 3]
lea edx, [esp + 0x58]
mov al, byte [ebx + 4]
mov word [esp + 0x5e], di
mov dword [esp + 0x44], eax
mov word [esp + 0x5c], ax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x58], eax
mov dword [esi + 0x24], edx
mov edi, dword [esp + 0xa4]
lea eax, [ebx + 1]
mov byte [eax], 0
mov dword [esp + 0x50], eax
lea eax, [ebx + 2]
neg edi
mov byte [eax], 0
mov dword [esp + 0x54], eax
sbb edi, edi
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esi + 0x40]
and edi, eax
lea ebx, [ebx + ecx + 3]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x30], edi
cmp dword [esp + 0x84], 0
mov dword [esp + 0x20], ebx
je 0x532568
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x40], ecx
cmp dword [esp + 0x80], 0
je 0x53258f
mov byte [ebx], 0x7c
add ebx, 1
mov byte [ebx], 0
mov byte [ebx + 1], 0
mov dword [esp + 0x44], ebx
add ebx, 2
add dword [esp + 0x10], 3
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x8c]
push edi
push esi
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x94]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.0052d840
test eax, eax
je 0x532789
mov eax, dword [esi + 0x40]
cmp eax, ebp
jbe 0x5325e7
mov dword [esp + 0x38], eax
cmp dword [esp + 0xa8], 0
mov ebp, dword [esp + 0x70]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
jne 0x532721
cmp byte [ecx], 0x77
je 0x532631
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x24], eax
mov dword [esp + 0xa0], edx
jmp 0x5326d0
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
jl 0x532679
cmp dword [esp + 0x18], eax
jne 0x532650
cmp dword [esp + 0x2c], edx
mov edi, dword [esp + 0x30]
je 0x532692
cmp dword [esp + 0xa0], 0
jge 0x532671
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], 0xffffffff
test eax, eax
jl 0x532692
cmp dword [esp + 0xa4], 0
jge 0x532692
mov dword [esp + 0x34], edx
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa4]
xor eax, dword [esp + 0xa0]
test eax, 0xfffffffd
jne 0x5326c5
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x24], eax
jne 0x5326c5
mov edx, dword [esp + 0xa4]
or dword [esp + 0xa0], edx
mov dword [esp + 0x24], eax
jmp 0x5326d0
mov dword [esp + 0xa0], 0xffffffff
cmp dword [esp + 0x80], 0
je 0x532721
push 0
push esi
mov eax, ebp
shr eax, 0xb
push 0
and eax, 1
push eax
push ecx
mov byte [ebx], 0
call fcn.0052b2b0
cmp eax, 0xfffffffd
jne 0x5326ff
mov dword [esi + 0x74], 1
jmp 0x53271d
test eax, eax
jl 0x53279f
cmp eax, dword [esi + 0x48]
jle 0x53270f
mov dword [esi + 0x48], eax
mov ecx, dword [esp + 0x44]
mov edx, eax
sar edx, 8
mov byte [ecx], dl
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp byte [eax], 0x7c
jne 0x5327ee
cmp dword [esp + 0xa8], 0
je 0x53275c
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
mov eax, dword [esp + 0x88]
add dword [esp + 0x10], 3
add dword [esp + 0x14], 1
mov ebp, dword [esp + 0x38]
lea ebx, [edx + eax + 3]
jmp 0x532553
mov ebp, dword [esp + 0x38]
mov edx, ebx
sub edx, ecx
mov byte [ebx], 0x77
mov al, bl
sar edx, 8
mov byte [ebx + 1], dl
sub al, cl
mov byte [ebx + 2], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x68], ebx
add ebx, 3
add dword [esp + 0x14], 1
jmp 0x532553
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
pop ebp
pop esi
pop edi
mov dword [edx], ecx
xor eax, eax
pop ebx
add esp, 0x5c
ret 0x3c
cmp eax, 0xfffffffe
jne 0x5327c5
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
pop ebp
mov eax, 0x24
mov dword [ecx], eax
mov eax, dword [esp + 0x74]
pop esi
pop edi
mov dword [eax], edx
xor eax, eax
pop ebx
add esp, 0x5c
ret 0x3c
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
sub eax, 0xfffffffc
neg eax
sbb eax, eax
and eax, 0xffffffd3
add eax, 0x46
pop ebp
mov dword [ecx], eax
mov eax, dword [esp + 0x74]
pop esi
pop edi
mov dword [eax], edx
xor eax, eax
pop ebx
add esp, 0x5c
ret 0x3c
mov edi, dword [esp + 0xa8]
test edi, edi
jne 0x532824
mov eax, ebx
sub eax, ecx
lea ecx, [ecx]
xor edx, edx
mov dh, byte [ecx + 1]
mov dl, byte [ecx + 2]
mov byte [ecx + 2], al
mov edi, edx
mov edx, eax
sar edx, 8
mov byte [ecx + 1], dl
sub ecx, edi
test edi, edi
mov eax, edi
jg 0x532800
mov edi, dword [esp + 0xa8]
mov eax, dword [esp + 0x28]
mov ecx, ebx
sub ecx, eax
mov dl, bl
mov byte [ebx], 0x78
sar ecx, 8
sub dl, al
mov byte [ebx + 1], cl
mov byte [ebx + 2], dl
add ebx, 3
cmp dword [esp + 0x48], 0
jle 0x5328b9
mov ecx, dword [esi + 0x24]
cmp word [ecx + 6], 0
je 0x5328b1
mov edx, dword [esp + 0x50]
push edx
shr ebp, 0xb
and ebp, 1
push ebp
push 3
push eax
mov byte [ebx], 0
call fcn.0052d340
mov edi, dword [esp + 0x28]
mov ecx, ebx
sub ecx, edi
lea eax, [edi + 3]
call fcn.0052a710
mov edx, dword [esp + 0x58]
add ebx, 3
mov ecx, edi
mov edi, dword [esp + 0xa8]
mov byte [ecx], 0x81
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x54]
sar eax, 8
mov byte [ecx], al
mov cl, bl
sub cl, byte [esp + 0x28]
add ebx, 3
mov byte [edx], cl
mov byte [ebx - 3], 0x78
mov byte [ebx - 2], al
mov byte [ebx - 1], cl
add dword [esp + 0x10], 6
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
mov dword [esi + 0x24], ecx
test edi, edi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x40], edx
mov edx, dword [esp + 0x14]
mov dword [eax], ebx
mov eax, dword [esp + 0x90]
mov dword [ecx], edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x94]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x98]
mov dword [edx], eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x9c]
mov dword [ecx], edx
mov ecx, dword [esp + 0xa0]
mov dword [eax], ecx
je 0x532936
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov edx, 0x7fffffeb
sub edx, eax
cmp edx, ecx
jge 0x532932
mov eax, dword [esp + 0x7c]
pop ebp
pop esi
pop edi
mov dword [eax], 0x14
xor eax, eax
pop ebx
add esp, 0x5c
ret 0x3c
add eax, ecx
mov dword [edi], eax
pop ebp
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0x5c
ret 0x3c