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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov ecx, dword [ebp + 0x10]
cmp ecx, 3
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], 6
mov dword [eax + 0x1c], 0xd
ja case.default.0x5da6a4
jmp dword [ecx*4 + 0x5daa20]
fld dword [ebp + 8]
fadd dword [0x66d5e0]
fstp dword [ebp + 8]
jmp case.0x5da6a4.0
fld dword [ebp + 8]
fadd dword [0x66d5e0]
fstp dword [ebp + 8]
fld dword [ebp + 0xc]
fadd dword [0x66d5e0]
fstp dword [ebp + 0xc]
jmp case.0x5da6a4.0
push 0
call fcn.0044b1f0
add esp, 4
mov esi, dword [ebp + 0x1c]
mov edx, dword [esi + 0x9c]
mov eax, dword [esi + 0xb0]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
je 0x5da712
lea edx, [esp + 0x20]
push edx
lea edx, [esi + 0xd8]
push edx
push ecx
push eax
call fcn.00510ae0
add esp, 0x10
jmp 0x5da71a
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.00510c00
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
lea edx, [esp + 0x34]
inc eax
push edx
mov dword [ebp + 0x14], eax
call fcn.004f86c0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [edi], eax
lea eax, [esp + 0x3c]
push eax
call fcn.004f86c0
mov dword [edi + 4], eax
mov esi, dword [esi + 0xb0]
mov dword [esp + 0x50], esi
fld dword [esp + 0x50]
fmul dword [0x677858]
add esp, 0x1c
add edi, 8
xor ecx, ecx
fstp dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ebx, esi
mov dword [esp + 0x38], esi
mov dword [ebp + 0x10], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx + 0x9c]
test edx, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], eax
je 0x5da7ce
lea edx, [esp + 0x40]
push edx
add ecx, 0xd8
push ecx
push eax
mov eax, dword [esp + 0x44]
push eax
call fcn.00510ae0
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
jmp 0x5da7da
mov edx, dword [esp + 0x38]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x9c]
test eax, eax
je 0x5da803
lea eax, [esp + 0x48]
push eax
add ecx, 0xd8
push ecx
mov ecx, dword [esp + 0x30]
push ebx
push ecx
call fcn.00510ae0
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
jmp 0x5da80f
mov edx, dword [esp + 0x28]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebx
mov eax, dword [ecx + 0x9c]
test eax, eax
je 0x5da835
lea eax, [esp + 0x50]
push eax
add ecx, 0xd8
push ecx
mov ecx, dword [esp + 0x38]
push esi
push ecx
call fcn.00510ae0
add esp, 0x10
jmp 0x5da841
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x58]
push eax
push ecx
push edx
push esi
push ebx
call fcn.00510c00
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x74]
push eax
push ecx
push edx
push esi
push ebx
call fcn.00510c00
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x90]
push eax
push ecx
push edx
push esi
push ebx
call fcn.00510c00
mov esi, dword [ebp + 0x14]
mov byte [esi], 2
lea eax, [esp + 0x94]
inc esi
push eax
mov dword [ebp + 0x14], esi
call fcn.004f86c0
mov ecx, dword [esp + 0x50]
add esp, 0x40
cmp ecx, eax
mov dword [edi], eax
jg 0x5da8b4
mov dword [esp + 0x10], eax
cmp dword [esp + 0xc], eax
jl 0x5da8be
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.004f86c0
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp ecx, eax
mov dword [edi + 4], eax
jg 0x5da8da
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], eax
jl 0x5da8e4
mov dword [esp + 0x14], eax
lea edx, [esp + 0x60]
push edx
add edi, 8
call fcn.004f86c0
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, eax
mov dword [edi], eax
jg 0x5da902
mov dword [esp + 0x10], eax
cmp dword [esp + 0xc], eax
jl 0x5da90c
mov dword [esp + 0xc], eax
lea eax, [esp + 0x64]
push eax
call fcn.004f86c0
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp ecx, eax
mov dword [edi + 4], eax
jg 0x5da928
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], eax
jl 0x5da932
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x68]
push ecx
add edi, 8
call fcn.004f86c0
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, eax
mov dword [edi], eax
jg 0x5da950
mov dword [esp + 0x10], eax
cmp dword [esp + 0xc], eax
jl 0x5da95a
mov dword [esp + 0xc], eax
lea edx, [esp + 0x6c]
push edx
call fcn.004f86c0
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp ecx, eax
mov dword [edi + 4], eax
jg 0x5da976
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], eax
jl 0x5da980
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
add edi, 8
inc eax
cmp eax, 4
mov dword [ebp + 0x10], eax
je 0x5da9d6
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
fchs
mov ebx, dword [esp + 0x28]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x2c]
fchs
mov dword [esp + 0x38], ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
fchs
mov dword [esp + 0x28], edx
fstp dword [esp + 0x1c]
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x1c]
jmp 0x5da796
mov eax, dword [esp + 0xc]
mov byte [esi], 3
mov esi, dword [ebp + 0x18]
lea edx, [esi + 4]
push edx
push eax
call fcn.005c68c0
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0xc]
push ecx
push edx
call fcn.005c68c0
mov ecx, dword [esp + 0x24]
lea eax, [esi + 8]
push eax
push ecx
call fcn.005c68c0
mov edx, dword [esp + 0x30]
add esi, 0x10
push esi
push edx
call fcn.005c68c0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret