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

Disassembly:
sub esp, 0x74
xor eax, eax
mov ecx, 1
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx + 0x13c]
cmp ecx, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], eax
mov dword [esp + 8], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x70], ecx
jne 0x10053b8f
add esp, 0x74
ret
push esi
push edi
mov edi, dword [0x30865cc]
cmp edi, eax
je 0x1005413e
push ebx
push ebp
xor ebx, ebx
cmp dword [esp + 0x7c], ebx
je 0x10053bbf
cmp dword [edi + 0x14], ebx
je 0x10053bb5
add dword [esp + 0x20], 1
jmp 0x10053bbf
cmp dword [esp + 0x20], ebx
jbe 0x10053bbf
mov dword [esp + 0x7c], ebx
mov eax, dword [edi + 8]
lea edx, [eax + eax*2]
mov eax, dword [0x308433c]
mov ecx, dword [eax + 8]
lea esi, [ecx + edx*8]
mov edx, dword [edi + 0xc]
push edx
push esi
call fcn.1003c620
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov edx, ecx
sub edx, eax
add esp, 8
cmp edx, dword [edi + 0x10]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ebx
jae 0x10053d75
mov ebx, dword [esp + 0x48]
cmp byte [esi + 0x10], 2
jne 0x10053c16
mov eax, dword [esi + 8]
add dword [esp + 0x6c], eax
add dword [esp + 0x38], eax
jmp 0x10053d4f
mov edx, dword [esi + 8]
add dword [esp + 0x70], edx
cmp edx, ebx
jbe 0x10053c2e
mov edx, dword [esi + 4]
mov dword [esp + 0x18], edx
sub edx, eax
mov dword [esp + 0x2c], edx
mov edx, 1
add dword [esp + 0x54], edx
cmp eax, edx
jne 0x10053d31
cmp edi, dword [0x30865cc]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
je 0x10053caa
mov eax, dword [edi + 8]
mov edx, dword [0x308433c]
mov edx, dword [edx + 8]
lea eax, [eax + eax*2]
add ecx, 0xffffffff
lea ebp, [edx + eax*8 - 0x18]
push ecx
push ebp
call fcn.1003c620
add esp, 8
cmp byte [ebp + 0x10], 1
je 0x10053d0a
mov eax, dword [esi + 4]
sub eax, 2
push eax
push ebp
call fcn.1003c620
add esp, 8
cmp byte [ebp + 0x10], 1
je 0x10053d0a
mov ecx, dword [esi + 4]
push ecx
push ebp
call fcn.1003c620
add esp, 8
cmp byte [ebp + 0x10], 1
je 0x10053d0a
cmp edi, dword [0x30865dc]
je 0x10053d05
mov eax, dword [edi + 8]
add eax, 1
lea edx, [eax + eax*2]
mov eax, dword [0x308433c]
mov ecx, dword [eax + 8]
lea ebp, [ecx + edx*8]
mov edx, dword [esi + 4]
sub edx, 1
push edx
push ebp
call fcn.1003c620
add esp, 8
cmp byte [ebp + 0x10], 1
je 0x10053d0a
mov eax, dword [esi + 4]
sub eax, 2
push eax
push ebp
call fcn.1003c620
add esp, 8
cmp byte [ebp + 0x10], 1
je 0x10053d0a
mov ecx, dword [esi + 4]
push ecx
push ebp
call fcn.1003c620
add esp, 8
cmp byte [ebp + 0x10], 1
je 0x10053d0a
add dword [esp + 0x44], 1
mov edx, 1
mov eax, dword [esi + 8]
cmp eax, ebx
jbe 0x10053d26
mov ecx, dword [edi + 8]
mov ebp, dword [0x30865dc]
cmp ecx, dword [ebp + 8]
je 0x10053d26
mov ebx, eax
cmp eax, 0xa
jae 0x10053d3d
add dword [esp + 0x34], edx
jmp 0x10053d4f
jbe 0x10053d0f
add dword [esp + 0x14], eax
add dword [esp + 0x3c], edx
jmp 0x10053d0f
mov eax, dword [edi + 8]
mov ecx, dword [0x30865dc]
cmp eax, dword [ecx + 8]
je 0x10053d4f
add dword [esp + 0x58], edx
push esi
call fcn.1003c520
add esp, 4
cmp dword [esi + 0xc], 0
jne 0x10053d71
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov edx, ecx
sub edx, eax
cmp edx, dword [edi + 0x10]
jb 0x10053c00
mov dword [esp + 0x48], ebx
mov eax, dword [edi]
xor ebx, ebx
test eax, eax
je 0x10053da9
mov ebp, dword [eax + 0x10]
cmp dword [edi + 0x10], ebp
jle 0x10053da9
mov esi, dword [edi + 0x10]
mov ecx, esi
sub ecx, dword [edi + 0xc]
mov eax, 0x55555556
add ecx, 1
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, ebp
cmp esi, eax
jl 0x10053da9
mov ebx, 1
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0x4c], eax
je 0x10053df1
mov ebp, dword [eax + 0x10]
cmp ebp, dword [edi + 0x10]
jge 0x10053ddb
mov esi, dword [edi + 0x10]
mov ecx, esi
sub ecx, dword [edi + 0xc]
mov eax, 0x55555556
add ecx, 1
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ebp
cmp esi, ecx
jge 0x10053df1
test ebx, ebx
mov ebx, dword [esp + 0x14]
jne 0x10053df5
mov edx, dword [esp + 0x38]
add dword [esp + 0x74], ebx
add dword [esp + 0x78], edx
jmp 0x10053df5
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x5c]
jbe 0x10053e03
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
mov edx, 1
cmp eax, edx
mov dword [esp + 0x34], 0
jne 0x10053f4b
mov ecx, dword [esp + 0x24]
add dword [esp + 0x64], edx
add ecx, edx
cmp ebx, 0x32
mov dword [esp + 0x24], ecx
jbe 0x10053e33
add dword [esp + 0x68], edx
cmp ecx, edx
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jbe 0x10053ec1
mov eax, dword [esp + 0x40]
cmp esi, eax
jl 0x10053e4f
cmp esi, ebp
jl 0x10053ec1
mov edi, dword [esp + 0x18]
cmp edi, eax
jle 0x10053e5b
cmp edi, ebp
jle 0x10053ec5
cmp esi, eax
jg 0x10053e63
cmp edi, ebp
jge 0x10053ec5
mov eax, dword [esp + 0x10]
cmp eax, edx
jbe 0x10053ead
cmp dword [esp + 0x28], 0
jne 0x10053ead
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
xor edx, edx
div ecx
cmp eax, 0x32
jb 0x10053ead
mov eax, dword [esp + 0x20]
shr eax, 1
cmp ecx, eax
jb 0x10053ead
mov edx, dword [0x30865dc]
mov eax, dword [edx + 8]
mov edx, dword [0x30865d8]
sub eax, dword [edx + 8]
shr eax, 3
cmp ecx, eax
jb 0x10053ead
add dword [esp + 0x30], 1
xor eax, eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
jmp 0x10053ec5
mov edi, dword [esp + 0x18]
lea eax, [ebx + ebx*2]
lea eax, [ebx + eax*8]
add eax, eax
add eax, eax
xor edx, edx
div dword [esp + 0x38]
cmp eax, 0x14
jb 0x10053edf
add dword [esp + 0x10], 1
cmp dword [esp + 0x10], 2
mov ecx, dword [esp + 0x4c]
jbe 0x10053f3e
test ecx, ecx
je 0x10053f3e
cmp dword [ecx + 0x14], 0
jne 0x10053f3e
mov eax, dword [ecx + 4]
test eax, eax
je 0x10053f3e
cmp dword [eax + 0x14], 0
jne 0x10053f3e
mov eax, dword [eax + 4]
test eax, eax
je 0x10053f3e
cmp dword [eax + 0x14], 0
jne 0x10053f3e
mov eax, dword [eax + 4]
test eax, eax
je 0x10053f3e
cmp dword [eax + 0x14], 0
jne 0x10053f3e
mov eax, dword [eax + 4]
test eax, eax
je 0x10053f3e
cmp dword [eax + 0x14], 0
jne 0x10053f3e
lea edx, [ebp - 5]
cmp edi, edx
jb 0x10053f36
add ebp, 5
cmp edi, ebp
jbe 0x10053f3e
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], esi
jmp 0x10054017
mov esi, dword [edi + 0x14]
test esi, esi
mov ebp, dword [0x30865dc]
jne 0x10053f86
cmp eax, 2
jne 0x10054128
cmp ebx, eax
jbe 0x10054131
mov eax, dword [0x30865cc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cmp dword [edi + 8], eax
jle 0x10054131
cmp dword [esp + 0x10], 1
jbe 0x10053fde
cmp dword [esp + 0x28], 0
jne 0x10053fde
test esi, esi
mov ecx, 0x14
je 0x10053fa2
mov ecx, 0x1e
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
xor edx, edx
div edi
cmp eax, ecx
jb 0x10053fde
mov eax, dword [esp + 0x20]
shr eax, 1
cmp edi, eax
jb 0x10053fde
mov ecx, dword [ebp + 8]
mov edx, dword [0x30865d8]
sub ecx, dword [edx + 8]
shr ecx, 3
cmp edi, ecx
jb 0x10053fde
add dword [esp + 0x30], 1
xor eax, eax
cmp esi, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
jne 0x10053ff4
mov dword [esp + 0x50], eax
mov eax, 1
cmp dword [esp + 0x3c], eax
jbe 0x10054003
add dword [esp + 0x60], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov edi, ecx
test edi, edi
jne 0x10053ba1
mov eax, dword [esp + 0x30]
cmp eax, 1
pop ebp
pop ebx
je 0x1005413e
cmp eax, 2
je 0x1005413e
cmp dword [esp + 0x48], ecx
jne 0x1005413e
mov esi, dword [esp + 0x4c]
test esi, esi
jbe 0x10054075
cmp dword [esp + 0x50], 0x14
mov ecx, dword [esp + 0x3c]
jae 0x1005406d
lea edx, [ecx + ecx*2]
lea eax, [ecx + edx*8]
add eax, eax
add eax, eax
xor edx, edx
div esi
cmp eax, 0xa
jae 0x1005413e
cmp ecx, esi
je 0x1005413e
mov eax, 0xa
cmp dword [esp + 0x40], eax
jae 0x1005408a
cmp dword [esp + 0x54], eax
jb 0x1005413e
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov edx, dword [0x30865dc]
mov edi, dword [edx + 8]
lea ecx, [eax + esi]
mov eax, dword [0x30865cc]
sub edi, dword [eax + 8]
lea edx, [ecx + ecx*2]
lea eax, [ecx + edx*8]
add eax, eax
add edi, 1
add eax, eax
xor edx, edx
div edi
cmp eax, 0x3c
jbe 0x100540e6
lea eax, [esi + esi*2]
lea eax, [esi + eax*8]
add eax, eax
add eax, eax
xor edx, edx
div ecx
cmp eax, 0x5a
jbe 0x100540e6
mov eax, dword [esp + 0x60]
lea ecx, [eax + eax*2]
lea eax, [eax + ecx*8]
add eax, eax
add eax, eax
xor edx, edx
div esi
cmp eax, 0x4b
ja 0x1005413e
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x1005413e
mov eax, dword [esp + 0x68]
lea edx, [eax + eax*2]
lea eax, [eax + edx*8]
add eax, eax
add eax, eax
cdq
idiv ecx
cmp eax, dword [esp + 0x78]
jg 0x1005413e
fild dword [esp + 0x6c]
fmul qword [0x307f098]
fidiv dword [esp + 0x70]
fcomp qword [0x307f0a0]
fnstsw ax
test ah, 5
jnp 0x1005413e
pop edi
xor eax, eax
pop esi
add esp, 0x74
ret
cmp eax, 1
jbe 0x10054003
mov dword [esp + 0x50], 0
jmp 0x10053ff4
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x74
ret