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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x70]
test ebx, ebx
push ebp
mov ebp, ecx
je 0x5b6d3e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x5b6d3e
lea ebx, [ebx]
cmp eax, 0x729c3c
je 0x5b6d48
mov eax, dword [eax + 4]
test eax, eax
jne 0x5b6d30
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret 0x10
push edi
mov edi, dword [esp + 0x74]
mov eax, dword [edi + 8]
test eax, eax
jne 0x5b6d5f
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret 0x10
push esi
movzx esi, word [eax + 0xc]
mov dword [esp + 0x78], esi
call dword [sym.imp.MSVCR71.dll_rand]
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
fimul dword [esp + 0x78]
fmul dword [0x71575c]
call fcn.005f275c
lea ecx, [esi - 1]
cmp eax, ecx
jl 0x5b6d8e
mov eax, ecx
mov ecx, dword [edi + 8]
imul eax, eax, 0x2c
add eax, dword [ecx + 0x10]
mov esi, eax
cmp word [esi + 0x1e], 0
jne 0x5b6dc3
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push edx
push eax
push ebx
push edi
mov ecx, ebp
call fcn.005b6bb0
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x64
ret 0x10
movzx edi, word [esi + 0x1e]
mov dword [esp + 0x78], edi
call dword [sym.imp.MSVCR71.dll_rand]
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
fild dword [esp + 0x78]
fmulp st(1)
fmul dword [0x71575c]
call fcn.005f275c
lea ecx, [edi - 1]
cmp eax, ecx
jl 0x5b6df3
mov eax, ecx
mov edi, dword [ebx + 0xc0]
test edi, edi
jne 0x5b6e09
pop esi
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0x64
ret 0x10
cmp word [esi + 0x22], 0
je 0x5b6e2b
mov ecx, dword [esi + 0x14]
movzx edx, word [ecx + eax*2]
mov dword [esp + 0x10], edx
movzx edx, word [ecx + eax*2 + 2]
movzx eax, word [ecx + eax*2 + 4]
mov ecx, dword [esp + 0x10]
jmp 0x5b6e3f
mov edx, dword [esi + 0x14]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*2]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
movzx eax, word [eax + 4]
push ecx
push esi
push edi
push ebx
lea ecx, [esp + 0x60]
mov dword [esp + 0x8c], edx
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
mov dword [esp + 0x90], eax
call fcn.005b6070
mov eax, dword [esp + 0x7c]
push eax
push esi
push edi
push ebx
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
call fcn.005b6070
mov eax, dword [esp + 0x78]
push eax
push esi
push edi
push ebx
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
call fcn.005b6070
fld dword [esp + 0x20]
fadd dword [esp + 0x14]
mov esi, dword [esp + 0x80]
fld dword [esp + 0x24]
mov edi, dword [esp + 0x84]
fadd dword [esp + 0x18]
mov eax, esi
fld dword [esp + 0x28]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x40]
fxch st(1)
fadd dword [esp + 0x2c]
fstp dword [esp + 0x68]
fadd dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [esp + 0x40]
fld dword [esp + 0x68]
fmul dword [0x6c71f4]
fstp dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
fxch st(1)
mov dword [eax], ecx
fmul dword [0x6c71f4]
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], edx
fmul dword [0x6c71f4]
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0x80]
test eax, eax
jne 0x5b6fb4
fld dword [esp + 0x44]
push 0x40400000
fadd dword [esp + 0x54]
lea edx, [esp + 0x60]
fld dword [esp + 0x4c]
push edx
fadd dword [esp + 0x5c]
lea ecx, [esp + 0x58]
fld dword [esp + 0x54]
fadd dword [esp + 0x60]
fstp dword [esp + 0x78]
fxch st(1)
fadd dword [esp + 0x64]
fstp dword [esp + 0x58]
fld dword [esp + 0x68]
fadd st(1)
fstp dword [esp + 0x5c]
fstp st(0)
fld dword [esp + 0x6c]
fadd dword [esp + 0x78]
fstp dword [esp + 0x60]
call fcn.004916d0
lea eax, [esp + 0x5c]
push eax
call fcn.0055beb0
add esp, 4
mov ecx, edi
call fcn.00491600
fstp dword [esp + 0x80]
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0x70]
push eax
call fcn.004313b0
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
add esp, 0xc
mov dword [ecx + 8], eax
cmp dword [ebp + 0x84], 3
jne 0x5b7097
fld dword [esp + 0x20]
fsub dword [esp + 0x14]
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fsub dword [esp + 0x18]
fstp dword [esp + 0x3c]
fld dword [esp + 0x28]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x40]
fld dword [esp + 0x2c]
fsub dword [esp + 0x14]
fstp dword [esp + 0x20]
fld dword [esp + 0x30]
fsub dword [esp + 0x18]
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x28]
call fcn.005aa230
fstp dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00491570
call fcn.005aa230
fld dword [0x6c263c]
fsub dword [esp + 0x80]
push ecx
lea ecx, [esp + 0x24]
fmulp st(1)
fstp dword [esp]
call fcn.00491570
fld dword [esp + 0x38]
mov edx, esi
fadd dword [esp + 0x14]
fld dword [esp + 0x3c]
fadd dword [esp + 0x18]
fld dword [esp + 0x40]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x70]
fxch st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov dword [edx], eax
fadd dword [esp + 0x24]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x70]
mov dword [edx + 4], ecx
fadd dword [esp + 0x28]
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [edx + 8], eax
push edi
push esi
push ebx
mov ecx, ebp
call fcn.005b5e60
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 0x64
ret 0x10