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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x70], 0
push edi
je 0x5b0d47
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x64]
mov edi, dword [esi + 0x70]
sub eax, 1
imul eax, dword [esi + 0x112]
add ecx, ecx
sub ecx, eax
lea eax, [ecx + edx - 1]
xor edx, edx
div edi
xor edx, edx
add eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x68]
lea eax, [ecx + eax - 1]
div edi
mov edi, eax
add edi, 1
mov ebx, edi
imul ebx, dword [esp + 0x10]
mov ecx, ebx
test ecx, ecx
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
jge 0x5b09df
fadd dword [0x7236cc]
fld1
mov edx, edi
test edx, edx
fld st(0)
fdivrp st(2)
mov dword [esp + 0x28], edx
fxch st(1)
fstp dword [esp + 0x14]
fild dword [esp + 0x28]
jge 0x5b09ff
fadd dword [0x7236cc]
fdivp st(1)
lea ecx, [esi + 0x48]
lea eax, [esp + 0x68]
mov dword [esp + 0x268], 0
mov dword [esp + 0x24], ecx
fstp dword [esp + 0x10]
call fcn.00628260
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x68]
call fcn.00628260
lea ecx, [esi + 0x14]
lea eax, [esp + 0x68]
call fcn.00628260
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
mov edx, eax
imul edx, eax
mov eax, dword [esi + 0x68]
push ecx
mov ecx, dword [esi + 0x64]
push edx
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.00628120
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
push edi
push ebx
call fcn.00628120
mov ecx, dword [esp + 0x268]
lea eax, [ecx + 0x10]
xor ebx, ebx
cmp eax, 0x200
ja 0x5b0a90
lea ecx, [esp + ecx + 0x68]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [esp + 0x268], eax
mov edi, dword [esi + 0x44]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0062b300
cmp byte [0x7365d3], 0
je 0x5b0ac4
push edi
push ebx
lea ecx, [esp + 0x34]
call fcn.0062cfa0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
cmp edx, dword [ecx + 4]
jne 0x5b0ada
mov eax, dword [esp + 0x34]
cmp eax, dword [ecx + 8]
je 0x5b0b10
cmp dword [ecx], ebx
je 0x5b0af0
mov edx, dword [ecx + 0xc]
cmp edx, ebx
jbe 0x5b0af0
mov eax, dword [ecx + 8]
imul eax, dword [ecx + 4]
cmp eax, edx
jae 0x5b0af4
xor eax, eax
jmp 0x5b0af9
cdq
xor eax, edx
sub eax, edx
lea ecx, [esp + 0x2c]
call fcn.0062d570
mov edi, dword [esi + 0x44]
lea eax, [esp + 0x2c]
call fcn.0062d4c0
xor ebx, ebx
fldz
push ecx
lea eax, [esp + 0x30]
fstp dword [esp]
call fcn.0062d8c0
mov edx, dword [esi + 0x112]
mov edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
sub edx, 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov ecx, edx
neg ecx
sub edi, edx
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ebx
jle 0x5b0c3a
neg edi
mov dword [esp + 0x20], edi
jmp 0x5b0b64
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov ecx, eax
imul ecx, ebx
xor edi, edi
test eax, eax
mov dword [esp + 0x64], ecx
jle 0x5b0c1f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x60]
add edx, eax
mov dword [esp + 0x28], edx
neg ebx
jmp 0x5b0b95
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
cmp eax, edx
jne 0x5b0ba5
lea edx, [esp + 0x2c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x28]
push eax
mov dword [esp + 0xf0], edx
mov edx, dword [esp + 0x1c]
add edx, ebx
lea eax, [esi + 0x14]
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xf8], edx
mov edx, dword [esi + 0x10]
add ecx, edi
push edx
mov dword [esp + 0x100], ecx
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x733338
mov dword [esp + 0x100], 0
call fcn.0062c980
test al, al
je 0x5b0d17
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
add dword [esp + 0x18], eax
add edi, 1
add ebx, 1
cmp edi, dword [esi + 0x6c]
mov dword [esp + 0xc], edx
jl 0x5b0b91
mov ebx, dword [esp + 0x10]
mov edx, eax
mov eax, dword [esi + 0x6c]
add dword [esp + 0x20], 1
add dword [esp + 0x1c], edx
add ebx, 1
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x5b0b60
mov ebx, dword [esi + 0x44]
xor edi, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.0062b300
cmp byte [0x7365d3], 0
je 0x5b0c70
push ebx
push edi
lea ecx, [esp + 0x4c]
call fcn.0062cfa0
lea ecx, [esp + 0x44]
lea eax, [esp + 0x68]
mov dword [esp + 0x268], edi
call fcn.00628260
add esi, 0x2c
mov ecx, esi
lea eax, [esp + 0x68]
call fcn.00628260
mov ebx, dword [esp + 0xc]
mov ecx, ebx
lea eax, [esp + 0x68]
call fcn.00628260
push esi
push ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x74]
push ecx
push 0x733308
call fcn.0062c910
test al, al
jne 0x5b0d50
mov eax, dword [esp + 0x58]
cmp eax, edi
je 0x5b0ccf
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x5b0cdf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x5b0cef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x5b0cff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x5b0d0f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
cmp eax, edi
jmp 0x5b0d3d
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5b0d27
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5b0d37
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5b0d47
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x44]
call fcn.0062e0e0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x5b0d6d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x5b0d7d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x5b0d8d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5b0d9d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5b0dad
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5b0dbd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret