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

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1b4]
push edi
cmp dword [esi + 0x58], 2
jl 0x52e68d
mov eax, dword [esi + 4]
test eax, eax
jne 0x52e3a2
pop edi
pop esi
pop ebp
mov eax, 0xffffff76
pop ebx
add esp, 0x1a4
ret
mov edi, dword [esp + 0x1c0]
mov ebx, dword [esp + 0x1bc]
test edi, edi
jl 0x52e68d
jg 0x52e3c2
test ebx, ebx
jb 0x52e68d
cmp edi, dword [esi + 0x14]
jg 0x52e68d
jl 0x52e3d6
cmp ebx, dword [esi + 0x10]
ja 0x52e68d
or eax, 0xffffffff
lea ebp, [esi + 0x78]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x5c]
push eax
push ebp
call fcn.00669860
lea ecx, [esi + 0x1e0]
push ecx
call fcn.0066d760
push edi
push ebx
push esi
call fcn.0066a5a0
add esp, 0x18
test eax, eax
je 0x52e433
or eax, 0xffffffff
lea edx, [esp + 0x4c]
mov dword [esi + 0x50], eax
push edx
mov dword [esi + 0x54], eax
call fcn.00668fb0
push esi
call fcn.0066b080
add esp, 8
mov eax, 0xffffff77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
xor eax, eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x5c]
push eax
push ecx
call fcn.00668f10
lea edx, [esp + 0x54]
push edx
call fcn.00669800
add esp, 0xc
mov eax, dword [esi + 0x58]
mov edi, 3
cmp eax, edi
jl 0x52e511
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.00669890
add esp, 8
test eax, eax
jle 0x52e511
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x48]
shl edx, 5
add eax, edx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x52e506
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.0066cec0
mov ebx, eax
add esp, 8
test ebx, ebx
jge 0x52e4bb
push 0
push ebp
call fcn.00669890
add esp, 8
xor ebx, ebx
jmp 0x52e4e8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x52e4d0
push 0
push ebp
call fcn.00669890
add esp, 8
jmp 0x52e4e8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x52e4e8
lea edx, [ebx + eax]
mov eax, dword [esp + 0x14]
sar edx, 2
add eax, edx
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, edi
and eax, ecx
cmp eax, 0xffffffff
jne 0x52e604
mov dword [esp + 0x10], ebx
jmp 0x52e45c
push 0
push ebp
call fcn.00669890
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x52e65e
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
push ecx
push esi
call fcn.0052d750
add esp, 0x10
test edx, edx
jl 0x52e64b
jg 0x52e541
test eax, eax
jb 0x52e64b
cmp dword [esi + 0x58], edi
jl 0x52e583
lea edx, [esp + 0x1c]
push edx
call fcn.00668eb0
mov ecx, dword [esi + 0x5c]
add esp, 4
cmp ecx, eax
je 0x52e57e
lea eax, [esp + 0x1c]
push eax
call fcn.00668db0
add esp, 4
test eax, eax
je 0x52e57e
push esi
call fcn.0066b080
lea ecx, [esp + 0x50]
push ecx
call fcn.00668fb0
add esp, 8
cmp dword [esi + 0x58], edi
jge 0x52e5d4
lea edx, [esp + 0x1c]
push edx
call fcn.00668eb0
mov ecx, dword [esi + 0x34]
mov edi, eax
add esp, 4
xor eax, eax
test ecx, ecx
jle 0x52e5aa
mov edx, dword [esi + 0x40]
cmp dword [edx], edi
je 0x52e5aa
inc eax
add edx, 4
cmp eax, ecx
jl 0x52e59e
cmp eax, ecx
je 0x52e45c
push edi
push ebp
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], edi
call fcn.00669860
lea eax, [esp + 0x54]
push edi
push eax
call fcn.00669860
add esp, 0x10
mov dword [esi + 0x58], 3
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.006694a0
lea edx, [esp + 0x24]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.006694a0
lea ecx, [esp + 0x2c]
push ecx
call fcn.00668dc0
add esp, 0x14
mov dword [esp + 0x18], eax
jmp 0x52e45c
mov edx, dword [esi + 0x60]
mov eax, dword [esi + 0x44]
mov ebx, edx
shl ebx, 4
sub edi, dword [ebx + eax]
sbb ecx, dword [ebx + eax + 4]
test ecx, ecx
jg 0x52e624
jl 0x52e620
test edi, edi
jae 0x52e624
xor edi, edi
xor ecx, ecx
test edx, edx
jle 0x52e63a
add eax, 8
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
add edi, ebx
adc ecx, ebp
add eax, 0x10
dec edx
jne 0x52e62b
mov eax, dword [esp + 0x14]
cdq
sub edi, eax
sbb ecx, edx
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
jmp 0x52e667
push 0xffffffffffffffff
push esi
call fcn.0052d1c0
mov dword [esi + 0x50], eax
add esp, 8
mov dword [esi + 0x54], edx
jmp 0x52e667
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea edx, [esp + 0x4c]
push edx
call fcn.00668fb0
add esp, 4
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x74], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff7d
pop ebx
add esp, 0x1a4
ret