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

Disassembly:
sub esp, 0x118
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, ebx
imul ebp, ebp, 0x158
push esi
mov esi, ecx
mov eax, dword [esi + 0x320]
push edi
lea edi, [eax + ebp]
mov al, byte [edi + 0x130]
test al, al
jne 0x5a7001
mov al, byte [esi + 0x19c]
test al, al
je 0x5a7001
mov eax, dword [esi + 0x24c]
test eax, eax
jle 0x5a7001
mov ecx, dword [edi + 0x11c]
cmp ecx, dword [esp + 0x130]
jne 0x5a70bc
fld dword [esp + 0x134]
call fcn.00693530
cmp dword [edi + 0x120], eax
ja 0x5a70bc
mov byte [edi + 0x130], 1
call dword [sym.imp.winmm.dll_timeGetTime]
mov edx, dword [esi + 0x320]
mov dword [edx + ebp + 0x138], eax
mov eax, dword [esi + 0x320]
mov edx, dword [eax + ebp]
add eax, ebp
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x2c], ecx
jle 0x5a70bc
mov dword [esp + 0x28], ecx
mov edi, dword [eax + 0x12c]
add edi, dword [esp + 0x28]
je 0x5a6fca
mov ecx, dword [esi + 0x200]
mov dword [edi + 0x2c], ecx
mov edx, dword [esi + 0x320]
mov eax, dword [edx + ebp + 0x134]
push eax
mov ecx, edi
call fcn.00607ee0
mov ecx, dword [esi + 0x320]
mov eax, dword [ecx + ebp + 0x104]
mov dword [edi + 0x1c], eax
mov edx, dword [esi + 0x320]
mov ecx, dword [edx + ebp + 0x110]
lea eax, [edx + ebp]
mov eax, dword [eax + 0x10c]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], ecx
lea eax, [esi + 0x1e0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], ecx
fld dword [esp + 0x30]
fmul dword [0x6ee1f8]
mov dword [esp + 0x38], eax
lea ebx, [esi + 0x1a0]
mov dword [esp + 0x34], edx
fstp dword [esp + 0x30]
lea ecx, [esp + 0x50]
fld dword [esp + 0x38]
push ecx
fmul dword [0x6ee1f8]
sub esp, 0xc
mov edx, esp
sub esp, 0xc
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fadd dword [ebx + 8]
fstp dword [esp + 0x2c]
fld dword [ebx + 4]
fadd dword [0x6f3614]
fstp dword [esp + 0x30]
fld dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
fadd dword [ebx]
fstp dword [esp + 0xb8]
mov ecx, dword [esp + 0xb8]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov edx, ebx
mov ecx, dword [edx]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov ecx, esi
mov dword [eax + 8], edx
call fcn.005a3110
xor eax, eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov eax, 0x3f800000
mov dword [esp + 0x98], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x320]
mov ecx, dword [eax + ebp + 0x140]
add eax, ebp
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 0x144]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x90], edx
mov eax, dword [eax + 0x148]
mov edx, dword [esp + 0x50]
push ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x58]
push edx
push eax
lea ecx, [esp + 0xf4]
push ecx
call fcn.005422fd
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xb0]
push ecx
call fcn.00541522
mov al, byte [esi + 0x374]
test al, al
je 0x5a6d40
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
push edx
push eax
push ecx
jmp 0x5a6d77
fld dword [esp + 0xe0]
mov edx, dword [esi + 0x320]
fadd dword [esi + 0x1a8]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [edx + ebp + 0x144]
fadd dword [esi + 0x1a4]
fstp dword [esp + 4]
fld dword [esp + 0xe4]
fadd dword [ebx]
fstp dword [esp]
mov ecx, edi
call fcn.00607fb0
mov eax, dword [esi + 0x118]
test eax, eax
mov dword [esp + 0x18], 0
je 0x5a6df2
mov eax, dword [esi + 0x114]
push eax
call fcn.0040103c
mov ecx, eax
call fcn.00646de5
test eax, eax
je 0x5a6df2
mov ecx, dword [esi + 0x118]
push 0x6d50d0
call fcn.005b5b70
mov ecx, dword [esi + 0x118]
mov ebx, eax
call fcn.00472d4b
fstp dword [esp + 0x14]
test ebx, ebx
je 0x5a6dfa
add ebx, 0x50
fld dword [esp + 0x14]
je 0x5a6de6
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x18], ecx
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
jmp 0x5a6dfa
fmul dword [0x6d4fd4]
fstp dword [esp + 0x18]
jmp 0x5a6dfa
mov dword [esp + 0x18], 0x42c80000
mov eax, dword [esi + 0x1f0]
fld dword [esp + 0x18]
fadd dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esi + 0x320]
fstp dword [esp + 0x14]
lea ecx, [eax + ebp + 0x150]
fld dword [ecx]
mov dword [esp + 0x3c], edx
fcomp dword [0x6f3614]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], ebx
fnstsw ax
test ah, 0x41
jne 0x5a6f5a
mov ecx, dword [ecx]
mov dword [esp + 0x48], ecx
fld dword [esp + 0x48]
fmul dword [0x6d3454]
call fcn.00693530
mov ebx, eax
call fcn.006935b2
cdq
idiv ebx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [0x6d6088]
fdiv dword [0x6d3454]
fstp dword [esp + 0x1c]
call fcn.006935b2
and eax, 0x80000001
jns 0x5a6e8c
dec eax
or eax, 0xfffffffe
inc eax
je 0x5a6e9c
fld dword [esp + 0x1c]
fmul dword [0x6dfbac]
fstp dword [esp + 0x1c]
call fcn.006935b2
cdq
idiv ebx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [0x6d6088]
fdiv dword [0x6d3454]
fstp dword [esp + 0x20]
call fcn.006935b2
and eax, 0x80000001
jns 0x5a6ed5
dec eax
or eax, 0xfffffffe
inc eax
je 0x5a6ee5
fld dword [esp + 0x20]
fmul dword [0x6dfbac]
fstp dword [esp + 0x20]
call fcn.006935b2
cdq
idiv ebx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [0x6d6088]
fdiv dword [0x6d3454]
fstp dword [esp + 0x24]
call fcn.006935b2
and eax, 0x80000001
jns 0x5a6f1e
dec eax
or eax, 0xfffffffe
inc eax
je 0x5a6f2e
fld dword [esp + 0x24]
fmul dword [0x6dfbac]
fstp dword [esp + 0x24]
fld dword [esp + 0x3c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x14]
fadd dword [esp + 0x20]
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
fld dword [esp + 0x4c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x44]
mov ebx, dword [esp + 0x44]
push ebx
push edx
mov edx, dword [esp + 0x44]
push edx
mov ecx, edi
call fcn.00607fd0
mov ecx, edi
call fcn.00608080
mov eax, dword [esi + 0x320]
mov ecx, dword [eax + ebp + 0x154]
mov dword [edi + 0x68], ecx
push 1
mov ecx, edi
call fcn.00608300
mov edx, dword [esi + 0x320]
lea eax, [edx + ebp + 4]
push eax
push 0
mov ecx, edi
call fcn.00608390
mov dword [edi + 0x3c], 1
mov ecx, dword [esi + 0x320]
mov edx, dword [ecx + ebp + 0x108]
mov ecx, edi
mov dword [edi + 0x50], edx
call fcn.0060a180
mov eax, dword [esi + 0x320]
mov eax, dword [eax + ebp + 0x13c]
mov dword [edi + 0x64], eax
mov edx, dword [esi + 0x320]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
lea eax, [edx + ebp]
mov edx, dword [eax]
inc ecx
add edi, 0xbc
cmp ecx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edi
jl 0x5a6b60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0x18
mov eax, dword [edi + 0x124]
cmp eax, dword [esp + 0x130]
jne 0x5a7092
fld dword [esp + 0x134]
call fcn.00693530
cmp dword [edi + 0x128], eax
ja 0x5a7092
mov ecx, dword [esi + 0x320]
mov byte [ecx + ebp + 0x131], 1
mov edx, dword [esi + 0x320]
mov eax, dword [edx + ebp + 0x12c]
test eax, eax
je 0x5a70bc
mov eax, edx
mov eax, dword [eax + ebp + 0x12c]
test eax, eax
je 0x5a7074
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.0060a290
push ecx
push 0xbc
push eax
call fcn.006945b7
push edi
call fcn.00693d31
add esp, 4
mov edx, dword [esi + 0x320]
mov dword [edx + ebp + 0x12c], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0x18
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x14c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
push ebx
mov ecx, esi
call fcn.005a3eb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0x18