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

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b0]
push edi
cmp dword [esi + 0x58], 2
jl 0x5330eb
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, ebp
jne 0x532e84
pop edi
pop esi
pop ebp
mov eax, 0xffffff76
pop ebx
add esp, 0x1a0
ret
mov edi, dword [esp + 0x1b8]
cmp edi, ebp
jl 0x5330eb
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov ebx, dword [ecx + eax*8 + 4]
lea ecx, [ecx + eax*8]
mov eax, edi
cdq
cmp edx, ebx
jg 0x5330eb
jl 0x532eb5
cmp eax, dword [ecx]
ja 0x5330eb
or eax, 0xffffffff
push esi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call fcn.00533100
push edi
push esi
call fcn.00532ac0
mov ebx, dword [esp + 0x20]
add esp, 0xc
mov ecx, 0x5a
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x58]
mov edi, 3
cmp eax, edi
jne 0x532f78
lea edx, [esp + 0x28]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00541b80
add esp, 8
test eax, eax
jle 0x532f78
mov ecx, dword [esi + 0x60]
mov edx, dword [esi + 0x48]
shl ecx, 5
lea eax, [ecx + edx]
mov ecx, dword [ecx + edx + 0x1c]
test ecx, ecx
je 0x532f2f
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00543170
add esp, 8
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x532f43
lea edx, [esi + 0x78]
push 0
push edx
call fcn.00541b80
add esp, 8
jmp 0x532f5a
test ebp, ebp
je 0x532f5a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, ebp
sar eax, 2
add ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov edx, ecx
and edx, edi
cmp edx, 0xffffffff
jne 0x53305f
mov ebp, dword [esp + 0x14]
jmp 0x532ee3
test ebp, ebp
jne 0x5330c8
lea eax, [esp + 0x18]
push 0xffffffffffffffff
push eax
push esi
call fcn.005327a0
add esp, 0xc
test eax, eax
jl 0x533089
cmp dword [esi + 0x58], edi
jne 0x532fc7
lea ecx, [esp + 0x18]
push ecx
call fcn.00541390
mov ecx, dword [esi + 0x5c]
add esp, 4
cmp ecx, eax
je 0x532fc4
push esi
call fcn.00533100
lea edx, [esp + 0x4c]
push edx
call fcn.00541460
add esp, 8
cmp dword [esi + 0x58], edi
jge 0x53302e
lea eax, [esp + 0x18]
push eax
call fcn.00541390
mov edx, dword [esi + 0x34]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x5c], eax
test edx, edx
jle 0x532ff1
mov edi, dword [esi + 0x40]
cmp dword [edi], eax
je 0x532ff1
inc ecx
add edi, 4
cmp ecx, edx
jl 0x532fe5
cmp ecx, edx
je 0x53309c
lea edi, [esi + 0x78]
push eax
push edi
mov dword [esi + 0x60], ecx
call fcn.005413f0
push edi
call fcn.00541b30
mov ecx, dword [esi + 0x5c]
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.005413f0
lea eax, [esp + 0x5c]
push eax
call fcn.00541b30
add esp, 0x18
mov dword [esi + 0x58], 3
lea ecx, [esp + 0x18]
lea edx, [esi + 0x78]
push ecx
push edx
call fcn.00541820
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00541820
lea edx, [esp + 0x28]
push edx
call fcn.005412a0
add esp, 0x14
mov ebx, eax
jmp 0x532ee3
mov edx, dword [esi + 0x60]
test edx, edx
jle 0x533078
mov eax, dword [esi + 0x44]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
add ecx, ebx
adc edi, ebp
add eax, 8
dec edx
jne 0x533069
mov eax, dword [esp + 0x10]
cdq
sub ecx, eax
sbb edi, edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edi
jmp 0x5330d1
push 0xffffffffffffffff
push esi
call fcn.00532de0
mov dword [esi + 0x50], eax
add esp, 8
mov dword [esi + 0x54], edx
jmp 0x5330d1
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea eax, [esp + 0x48]
push eax
call fcn.00541460
push esi
call fcn.00533100
add esp, 8
mov eax, 0xffffff77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00541460
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff7d
pop ebx
add esp, 0x1a0
ret