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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov ebx, ecx
push edi
mov esi, ebx
mov dword [esp + 0x28], ebx
call fcn.005fade0
mov eax, dword [ebx + 0x74]
mov esi, dword [eax + 0x12c]
call fcn.0060e620
cmp byte [ebp + 0x14], 0
push 0
je 0x5f9d93
mov edx, dword [ebx]
mov eax, dword [edx + 0xac]
push 8
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xa8]
push 0
push 8
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xb4]
push 0xffff
push 0xffff
mov ecx, ebx
call eax
fld dword [0x7b1248]
mov edx, dword [ebx]
mov eax, dword [edx + 0x90]
push ecx
mov ecx, ebx
fstp dword [esp]
call eax
push 0
mov esi, ebx
call fcn.005fa770
mov edx, dword [ebx]
mov eax, dword [edx + 0xfc]
push 1
push 0
mov ecx, ebx
call eax
mov esi, dword [ebx + 0x74]
push 1
mov eax, 0x89
call fcn.00615490
mov edx, dword [ebx + 0x74]
push 1
mov eax, 1
xor ecx, ecx
call fcn.00615580
mov edx, dword [ebx + 0x74]
push 1
mov eax, 2
xor ecx, ecx
call fcn.00615580
mov esi, dword [ebx + 0x74]
push 1
mov eax, 0xe
call fcn.00615490
mov esi, dword [ebx + 0x74]
push 1
mov eax, 7
call fcn.00615490
mov esi, dword [ebx + 0x74]
push 4
mov eax, 0x17
call fcn.00615490
mov esi, dword [ebx + 0x74]
push 3
mov eax, 0x16
call fcn.00615490
lea eax, [esp + 0x4c]
call fcn.005eeb70
or ecx, 0xffffffff
lea eax, [esp + 0x3c]
call fcn.00434820
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x54], ecx
xor ecx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x58], edx
call fcn.00434820
mov ecx, dword [eax]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
xor ecx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x78], edx
call fcn.00434820
fld1
mov ecx, dword [eax]
fstp dword [esp + 0x7c]
mov edx, dword [eax + 4]
fld dword [0x7b1248]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 0xc]
fst dword [esp + 0x3c]
lea eax, [esp + 0x4c]
fstp dword [esp + 0x40]
fld dword [0x82e184]
push eax
push ecx
fstp dword [esp + 0x4c]
lea edi, [esp + 0x38]
lea eax, [esp + 0x44]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
call fcn.00428330
add esp, 4
push eax
mov eax, dword [ebx + 0x74]
push 0
call fcn.00615b40
mov ecx, dword [ebx + 0x74]
push 1
xor eax, eax
call fcn.00615610
mov esi, dword [ebx + 0x74]
push 0x40404040
mov eax, 0x8b
call fcn.00615490
cmp byte [ebx + 0x9a], 0
je 0x5f9d9a
mov edx, dword [ebx]
mov eax, dword [edx + 0xa4]
mov ecx, ebx
call eax
jmp 0x5f9d9a
mov esi, ebx
call fcn.005fa770
mov ecx, dword [ebx + 0x74]
mov esi, dword [ebp + 0xc]
push 0x100
push ecx
call fcn.00616560
mov edx, dword [ebx + 0x74]
mov edi, dword [edx + 0x12c]
mov esi, edi
mov dword [esp + 0x14], edi
call fcn.0060e620
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
je 0x5f9de9
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push esi
call edx
mov eax, edi
mov edi, dword [ebx + 0x74]
call fcn.0060ec60
push 0
mov esi, ebx
call fcn.005fa770
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x28]
mov ecx, dword [eax]
mov dword [esp + 0x30], edi
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], edx
test edi, edi
je 0x5f9e0b
cmp edi, eax
je 0x5f9e10
call fcn.006441b7
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x34], eax
je 0x5fa15b
test edi, edi
jne 0x5fa14d
call fcn.006441b7
mov ecx, dword [esp + 0x34]
cmp ecx, dword [edi + 0x14]
jne 0x5f9e39
call fcn.006441b7
mov edx, dword [esp + 0x34]
mov esi, dword [edx + 8]
cmp dword [esi + 0x64], 0
mov dword [esp + 0x2c], esi
je 0x5f9f60
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x58]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1a4]
lea edi, [esi + 0x6c]
push edi
push 1
push ecx
mov ecx, dword [esi + 0x5c]
imul ecx, eax
push 0
push ecx
mov ecx, ebx
mov dword [esp + 0x30], eax
call edx
test eax, eax
jge 0x5f9eb6
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
push 4
mov ecx, ebx
call edx
mov edx, dword [esi + 0x5c]
imul edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x54]
mov eax, dword [ebx]
mov eax, dword [eax + 0x1a4]
push edi
push 1
push ecx
push 0
push edx
mov ecx, ebx
call eax
push eax
mov edi, 0x81d304
call fcn.005fb350
add esp, 4
test al, al
jne 0x5fa158
mov ecx, dword [esi + 0x5c]
imul ecx, dword [esi + 0x58]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1ac]
push 0x800
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x6c]
push ecx
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 0
call edx
push eax
mov edi, 0x81d304
call fcn.005fb350
add esp, 4
test al, al
jne 0x5fa158
cmp dword [esi + 0x5c], 0
mov eax, dword [esi + 0x64]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
jle 0x5f9f3d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push ecx
push edx
push edi
call fcn.0064d2b0
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
add edi, dword [esi + 0x58]
inc eax
add esp, 0xc
cmp eax, dword [esi + 0x5c]
mov dword [esp + 0x20], eax
jl 0x5f9f11
mov edx, dword [ebx]
mov eax, dword [esi + 0x6c]
mov edx, dword [edx + 0x1b0]
push eax
mov ecx, ebx
call edx
mov eax, dword [esi + 0x64]
push eax
call fcn.00644b73
add esp, 4
mov dword [esi + 0x64], 0
cmp dword [esi + 0x68], 0
je 0x5fa00d
mov edx, dword [ebx]
mov edx, dword [edx + 0x1a8]
lea eax, [esi + 0x70]
push eax
mov eax, dword [esi + 0x60]
push 1
add eax, eax
push eax
mov ecx, ebx
call edx
push eax
mov edi, 0x81d304
call fcn.005fb350
add esp, 4
test al, al
jne 0x5fa158
mov edx, dword [esi + 0x60]
mov eax, dword [ebx]
push 0x800
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x70]
add edx, edx
push edx
mov edx, dword [eax + 0x1b4]
push 0
push ecx
mov ecx, ebx
mov dword [esp + 0x38], 0
call edx
push eax
call fcn.005fb350
add esp, 4
test al, al
jne 0x5fa158
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x68]
mov edx, dword [esp + 0x24]
add eax, eax
push eax
push ecx
push edx
call fcn.0064d2b0
mov ecx, dword [esi + 0x70]
mov eax, dword [ebx]
mov edx, dword [eax + 0x1b8]
add esp, 0xc
push ecx
mov ecx, ebx
call edx
mov eax, dword [esi + 0x68]
push eax
call fcn.00644b73
add esp, 4
mov dword [esi + 0x68], 0
mov edx, dword [ebx]
lea ecx, [esi + 0x3c]
call fcn.00466460
push eax
mov eax, dword [edx + 0xf4]
push 0
mov ecx, ebx
call eax
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.00466460
test eax, eax
je 0x5fa046
mov edx, dword [ebx]
call fcn.00466460
push eax
mov eax, dword [edx + 0xf4]
push 1
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x54]
mov eax, dword [ebx + 0x74]
push ecx
call fcn.00616980
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x6c]
push edx
push eax
mov eax, dword [ebx + 0x74]
call fcn.006163b0
mov ecx, dword [esi + 0x70]
mov eax, dword [ebx + 0x74]
push ecx
call fcn.00616ac0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x5fa0b4
mov edx, dword [eax + 0x20]
mov ecx, edi
call fcn.00466460
test eax, eax
setne al
movzx ecx, al
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x20]
push eax
mov eax, dword [edx]
add esi, 4
push esi
push ecx
mov ecx, edx
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [esp + 0x14]
mov edi, dword [ebx + 0x74]
call fcn.0060ec60
push 0
mov esi, ebx
call fcn.005fa770
mov ebx, dword [ebx + 0x74]
call fcn.0060ebe0
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x60]
mov ebx, dword [esp + 0x28]
mov edi, dword [ebx]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esi + 0x5c]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [edi + 0x1bc]
push eax
push 0
push ecx
push 0
push 4
mov ecx, ebx
call edx
push eax
mov edi, 0x81d304
call fcn.005fb350
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [eax + 0x20], 0
je 0x5fa122
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
lea edi, [esi + 0x20]
push edi
add esi, 4
push esi
push eax
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [esp + 0x14]
mov edi, dword [ebx + 0x74]
call fcn.0060ec60
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x5fa154
call fcn.006441b7
xor eax, eax
mov esi, dword [esp + 0x34]
cmp esi, dword [eax + 0x14]
jne 0x5fa13f
call fcn.006441b7
mov ecx, dword [esi]
mov edi, dword [esp + 0x30]
mov esi, dword [ebp + 8]
jmp 0x5f9df5
mov edi, dword [edi]
jmp 0x5f9e2b
mov eax, dword [eax]
jmp 0x5fa131
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
je 0x5fa178
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push esi
call eax
mov eax, dword [esp + 0x14]
mov edi, dword [ebx + 0x74]
call fcn.0060ec60
mov ecx, dword [ebx + 0x74]
mov eax, dword [ecx + 0x12c]
call fcn.0060e660
mov edx, dword [ebx + 0x74]
mov eax, dword [edx + 0x12c]
call fcn.0060e660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10