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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x681551
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x36c
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.0064dc20
lea ecx, [esp + 0x78]
call fcn.0064dc20
lea ecx, [esp + 0x44]
call fcn.00473130
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov ebx, dword [edi + 8]
mov dword [esp + 0x38], 0
cmp ebx, 2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x5c], ebx
jl 0x5c9fea
cmp ebx, 1
mov dword [esp + 0x28], 1
jle 0x5c9f1d
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov ebx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [eax - 4]
mov edi, dword [ebx + 0x20]
mov dword [esp + 0x60], ecx
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x5c9fea
test edi, edi
je 0x5c9fea
call fcn.004da3a0
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xb8]
fstp qword [esp + 0x6c]
mov ecx, edi
call fcn.004da3a0
mov edi, eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xb8]
mov eax, dword [esp + 0x60]
fstp qword [esp + 0x64]
mov ecx, dword [eax + 0x48]
test ecx, ecx
mov ecx, dword [eax + 0x4c]
jne 0x5c9c45
mov edx, dword [esi]
cmp ecx, 1
je 0x5c9c0d
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x38]
push eax
lea eax, [esp + 0x10c]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x94]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bd820
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x38]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x274]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xe4]
push eax
lea ecx, [esp + 0x30]
call fcn.006578b0
jmp 0x5c9cee
lea eax, [esp + 0xd8]
mov ecx, esi
push eax
call dword [edx + 0x7c]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bd820
mov edx, dword [esi]
lea eax, [esp + 0x198]
push eax
mov ecx, esi
call dword [edx + 0xf0]
push eax
lea ecx, [esp + 0x30]
call fcn.006578b0
jmp 0x5c9cee
mov edx, dword [esi]
cmp ecx, 2
je 0x5c9c94
fld qword [esp + 0x6c]
fsub qword [ebx + 0x38]
sub esp, 8
lea eax, [esp + 0x98]
mov ecx, esi
fstp qword [esp]
push eax
call dword [edx + 0x94]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bd820
fld qword [esp + 0x6c]
fsub qword [ebx + 0x38]
mov edx, dword [esi]
sub esp, 8
lea eax, [esp + 0x260]
mov ecx, esi
fstp qword [esp]
push eax
call dword [edx + 0xe4]
jmp 0x5c9cc0
lea eax, [esp + 0x138]
mov ecx, esi
push eax
call dword [edx + 0x84]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bd820
mov edx, dword [esi]
lea eax, [esp + 0x1c8]
push eax
mov ecx, esi
call dword [edx + 0xf4]
push eax
lea ecx, [esp + 0x30]
call fcn.006578b0
fld qword [esp + 0x2c]
fchs
fstp qword [esp + 0x2c]
fld qword [esp + 0x34]
fchs
fstp qword [esp + 0x34]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [ebx + 0x24]
test eax, eax
mov eax, dword [ebx + 0x28]
jne 0x5c9dc4
mov edx, dword [edi]
cmp eax, 1
je 0x5c9d6d
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x38]
push eax
lea eax, [esp + 0x16c]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x94]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x38]
mov eax, dword [edi]
push ecx
lea ecx, [esp + 0xac]
push edx
push ecx
mov ecx, edi
call dword [eax + 0xe4]
push eax
lea ecx, [esp + 0x48]
call fcn.006578b0
jmp 0x5c9eab
lea eax, [esp + 0xc0]
mov ecx, edi
push eax
call dword [edx + 0x7c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xf0]
mov dword [esp + 0x24], edx
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xf0]
push eax
lea ecx, [esp + 0x48]
call fcn.006578b0
jmp 0x5c9eab
mov edx, dword [edi]
cmp eax, 2
je 0x5c9e32
fld qword [esp + 0x64]
fsub qword [ebx + 0x38]
sub esp, 8
lea eax, [esp + 0x128]
mov ecx, edi
fstp qword [esp]
push eax
call dword [edx + 0x94]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
fld qword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
fsub qword [ebx + 0x38]
mov eax, dword [edi]
sub esp, 8
lea ecx, [esp + 0x158]
fstp qword [esp]
push ecx
mov ecx, edi
call dword [eax + 0xe4]
jmp 0x5c9e7d
lea eax, [esp + 0x180]
mov ecx, edi
push eax
call dword [edx + 0x84]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x24], edx
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xf4]
push eax
lea ecx, [esp + 0x48]
call fcn.006578b0
fld qword [esp + 0x44]
fchs
fstp qword [esp + 0x44]
fld qword [esp + 0x4c]
fchs
fstp qword [esp + 0x4c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea edx, [esp + 0x2c]
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x294]
push edx
push eax
call fcn.006567f0
add esp, 0x14
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x28]
push eax
mov dword [esp + 0x384], 0
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi*4]
add ecx, 0x58
call fcn.00654de0
lea ecx, [esp + 0x288]
mov dword [esp + 0x380], 0xffffffff
call fcn.00456760
mov eax, dword [esp + 0x5c]
mov edi, dword [ebp + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x28], esi
jl 0x5c9b53
mov ebx, eax
mov esi, 1
cmp ebx, esi
jle 0x5c9fea
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
add ecx, 0x58
push ecx
lea ecx, [esp + 0x1e4]
call fcn.00654cc0
mov edx, dword [edi + 4]
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x380], 1
mov eax, dword [edx + esi*4 - 4]
lea edx, [esp + 0x300]
add eax, 0xd0
push eax
push ecx
push edx
call fcn.00655060
add esp, 0xc
push eax
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x384], 2
call fcn.00654de0
lea ecx, [esp + 0x300]
mov byte [esp + 0x380], 1
call fcn.00456760
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
lea edx, [eax + 0xd0]
lea ecx, [eax + 0x148]
push edx
call fcn.00654de0
mov ecx, dword [edi + 4]
lea edx, [esp + 0x1e0]
push edx
mov ecx, dword [ecx + esi*4]
add ecx, 0xd0
call fcn.00654de0
lea ecx, [esp + 0x1e0]
mov dword [esp + 0x380], 0xffffffff
call fcn.00456760
inc esi
cmp esi, ebx
jl 0x5c9f2a
mov ecx, dword [esp + 0x378]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret