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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe38
mov esi, eax
mov ebx, edx
mov eax, dword [0x8e6e40]
mov eax, dword [eax]
call eax
mov ebp, eax
push ebp
mov eax, dword [0x8e6a3c]
mov eax, dword [eax]
call eax
pop ecx
xor eax, eax
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [0x8e688c]
mov eax, dword [eax]
call eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x108]
push eax
mov ecx, ebx
mov edx, dword [esp + 0x1c]
mov eax, esi
call fcn.005c9330
mov edi, eax
test edi, edi
jl 0x5c9b32
mov eax, dword [ebx + 0xcd52c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x5c]
mov dword [esp + 0x28], edx
mov eax, dword [0x8e6998]
mov edx, dword [eax]
mov dword [esp], edx
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
jmp 0x5c960e
push 0xa
call fcn.0041f244
cmp dword [ebx + 0x8ca18], 0
je 0x5c9632
cmp dword [ebx + 0xccc80], 0
jne 0x5c9632
cmp dword [ebx + 0xcd580], 0
jne 0x5c9632
cmp dword [ebx + 0xcd57c], 0
je 0x5c9607
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [0x8e63e8]
mov eax, dword [eax]
call eax
add esp, 0xc
mov edi, eax
cmp dword [esp + 0x20], 0
je 0x5c968f
mov eax, dword [esp + 0x20]
push eax
push ebp
mov eax, dword [0x8e6400]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x48]
mov dword [esp], edx
mov edx, dword [eax + 0x4c]
mov dword [esp + 4], edx
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x50]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x54]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x70], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0xccc6c]
mov edx, dword [eax + 0x38]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x5c]
cdq
push edx
push eax
mov eax, dword [esp + 0x58]
cdq
call fcn.004093c8
push edx
push eax
mov eax, dword [esp + 0x5c]
cdq
push edx
push eax
mov eax, dword [esp + 0x68]
cdq
call fcn.004093c8
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
cmp dword [esp + 0x6c], 0
jne 0x5c96f4
cmp dword [esp + 0x68], 0
je 0x5c9761
mov eax, dword [esp + 0x54]
cdq
xor eax, dword [esp + 0x68]
xor edx, dword [esp + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x64]
cdq
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
cmp dword [esp + 0x6c], 0
jne 0x5c972c
cmp dword [esp + 0x68], 0
jbe 0x5c973b
jmp 0x5c972e
jle 0x5c973b
mov dword [esp + 0x60], 1
jmp 0x5c97c6
cmp dword [esp + 0x6c], 0
jne 0x5c974b
cmp dword [esp + 0x68], 0
jae 0x5c9757
jmp 0x5c974d
jge 0x5c9757
mov dword [esp + 0x60], 0xffffffff
jmp 0x5c97c6
mov dword [esp + 0x60], 1
jmp 0x5c97c6
cmp dword [esp + 0x5c], 0
je 0x5c9777
cmp dword [esp + 0x54], 0
je 0x5c9777
xor eax, eax
mov dword [esp + 0x60], eax
jmp 0x5c97c6
cmp dword [esp + 0x50], 0
je 0x5c97be
cmp dword [esp + 0x58], 0
je 0x5c97be
cmp dword [esp + 0x50], 0
jle 0x5c97a5
cmp dword [esp + 0x58], 0
jle 0x5c979b
xor eax, eax
mov dword [esp + 0x60], eax
jmp 0x5c97c6
mov dword [esp + 0x60], 1
jmp 0x5c97c6
cmp dword [esp + 0x58], 0
jle 0x5c97b6
mov dword [esp + 0x60], 1
jmp 0x5c97c6
xor eax, eax
mov dword [esp + 0x60], eax
jmp 0x5c97c6
mov dword [esp + 0x60], 0x80000000
cmp dword [esp + 0x60], 0
je 0x5c98ab
mov eax, dword [esp]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xccc6c]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [0x8e66f8]
mov eax, dword [eax]
call eax
add esp, 0x18
mov dword [esp], eax
mov dword [esp + 4], edx
push 0x5c9b74
mov eax, dword [esp + 0x28]
mov dword [esp + 0x19c], eax
mov byte [esp + 0x1a0], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1a4], eax
mov byte [esp + 0x1a8], 0
lea eax, [esp + 0x34]
mov dword [esp + 0x1ac], eax
mov byte [esp + 0x1b0], 0x10
mov eax, dword [ebx + 0xccc6c]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x1b4], eax
mov byte [esp + 0x1b8], 0
mov eax, dword [ebx + 0xccc6c]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x1bc], eax
mov byte [esp + 0x1c0], 0
lea eax, [esp + 4]
mov dword [esp + 0x1c4], eax
mov byte [esp + 0x1c8], 0x10
lea eax, [esp + 0x19c]
push eax
push 5
call fcn.005b042c
mov ecx, 7
mov edx, esi
call fcn.005b10d8
test edi, edi
jl 0x5c9b32
cmp dword [esp + 0x20], 0
je 0x5c960e
cmp dword [ebx + 0xcd584], 0
je 0x5c98e0
cmp dword [ebx + 0xcd588], 0
je 0x5c98e0
xor eax, eax
mov dword [ebx + 0xcd584], eax
xor eax, eax
mov dword [ebx + 0xcd580], eax
mov eax, dword [ebx + 0xccc6c]
mov edx, dword [eax + 0x38]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x74], edx
fild dword [esp + 0x70]
fild dword [esp + 0x74]
fdivp st(1)
fstp qword [esp + 0x78]
wait
fild qword [esp]
fmul qword [esp + 0x78]
fstp qword [esp + 8]
wait
cmp byte [esi + 0x4be], 0
jne 0x5c9921
mov dword [esp + 0x38], ebp
jmp 0x5c9a86
mov eax, dword [ebx + 0xccc6c]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x28]
push eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [0x8e6804]
mov eax, dword [eax]
call eax
add esp, 0xc
mov dword [esp + 0x44], eax
cmp dword [esp + 0x40], 0
jne 0x5c997a
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [0x8e6dd0]
mov eax, dword [eax]
call eax
pop ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
jmp 0x5c99ae
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x44]
jge 0x5c99ae
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [0x8e6cd0]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [0x8e6dd0]
mov eax, dword [eax]
call eax
pop ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x40], 0
jne 0x5c99db
push 0x5c9be8
call fcn.005b042c
mov ecx, 3
mov edx, esi
call fcn.005b1078
mov byte [esi + 0x4be], 0
mov dword [esp + 0x38], ebp
jmp 0x5c9a86
lea eax, [esp + 0x80]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x38]
mov eax, ebp
mov ecx, 0x118
call fcn.00404518
mov eax, dword [ebx + 0xccc6c]
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x28]
push eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [0x8e6eb0]
mov eax, dword [eax]
call eax
add esp, 0x14
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x2c]
push eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x28]
push eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x34]
push eax
push ebp
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [0x8e6d6c]
mov eax, dword [eax]
call eax
add esp, 0x14
test eax, eax
jge 0x5c9a84
emms
push 0x5c9c38
call fcn.005b042c
mov ecx, 3
mov edx, esi
call fcn.005b1078
mov byte [esi + 0x4be], 0
mov dword [esp + 0x38], ebp
jmp 0x5c9a86
emms
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov edx, ebx
mov eax, esi
call fcn.005c85b0
mov edi, eax
test edi, edi
jl 0x5c9b32
mov eax, dword [esi + 0x3e0]
push eax
call fcn.0040d930
xor eax, eax
mov dword [ebx + 0xcd570], eax
cmp byte [esi + 0x4a8], 0
je 0x5c9ada
cmp dword [ebx + 0x8ca20], 0
jne 0x5c9ada
mov byte [esi + 0x4a8], 0
cmp dword [ebx + 0xcd57c], 0
je 0x5c9b08
cmp dword [ebx + 0xcd57c], 2
jge 0x5c9af4
inc dword [ebx + 0xcd57c]
jmp 0x5c9b08
xor eax, eax
mov dword [ebx + 0xcd57c], eax
mov edx, 1
mov eax, esi
call fcn.005cfb40
cmp byte [esi + 0xd0], 0
je 0x5c960e
cmp dword [esi + 0x28c], 0
je 0x5c960e
mov eax, dword [esi + 0x28c]
call fcn.005c7b3c
jmp 0x5c960e
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x8e6b98]
mov eax, dword [eax]
call eax
pop ecx
push ebp
mov eax, dword [0x8e6cd0]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [0x8e6cd0]
mov eax, dword [eax]
call eax
pop ecx
add esp, 0x1c8
pop ebp
pop edi
pop esi
pop ebx
ret