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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x74
fld dword [0x7d7d3c]
push ebx
push esi
mov esi, ecx
fcomp dword [esi + 0x9ac]
push edi
fnstsw ax
test ah, 0x44
jp 0x5f54e3
fild dword [0x86518c]
fmul dword [0x784268]
fstp dword [esi + 0x9ac]
fld dword [esi + 0x430]
xor eax, eax
fmul dword [0x78426c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x130]
mov dword [esp + 0x2c], eax
lea ecx, [esi + 0x99c]
lea edx, [esi + 0x330]
lea eax, [esi + 0x3b4]
fstp dword [esp + 0x3c]
mov dword [esp + 0x10], 0x50000
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], eax
jmp 0x5f5540
mov ecx, dword [esp + 0x1c]
mov al, byte [esi + ecx + 0x390]
test al, al
je 0x5f5870
inc dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ebx, dword [edx + 0x64]
mov edi, ebx
imul edi, edi, 0x98
add edi, 0x800ee0
cmp ebx, 0xd
je 0x5f5576
cmp ebx, 0xe
jne 0x5f559d
mov ecx, dword [esp + 0x1c]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x34]
or ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], ecx
xor ecx, ecx
cmp ebx, 0xe
sete cl
or eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
fld dword [eax]
fld dword [eax + 4]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fstp dword [esp + 0x38]
fld dword [ebp + 8]
fcomp dword [0x7a55f8]
fnstsw ax
test ah, 5
jp 0x5f5763
fld dword [esp + 0x38]
fcomp dword [edi + 0x60]
fnstsw ax
test ah, 0x41
jne 0x5f5763
fild dword [0x86518c]
mov ecx, dword [esp + 0x20]
fmul dword [0x784268]
fsub dword [esi + 0x9ac]
fadd dword [ecx]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x5f576d
cmp byte [eax], 0
je 0x5f576d
fld dword [edi + 0x60]
fld dword [esp + 0x38]
fsub st(1)
fld dword [edi + 0x64]
fsub st(2)
fdivp st(1)
fstp st(1)
fld dword [esp + 0x18]
fcomp dword [0x7a561c]
fnstsw ax
test ah, 5
jp 0x5f5641
fmul dword [0x7d7d3c]
jmp 0x5f568a
fld dword [esp + 0x18]
fcomp dword [0x7a5620]
fnstsw ax
test ah, 5
jp 0x5f565a
fmul dword [0x784d28]
jmp 0x5f568a
fld dword [esp + 0x18]
fcomp dword [0x7a5624]
fnstsw ax
test ah, 5
jp 0x5f5673
fmul dword [0x784260]
jmp 0x5f568a
fld dword [esp + 0x18]
fcomp dword [0x7a5628]
fnstsw ax
test ah, 5
jp 0x5f568a
fmul dword [0x785510]
fcom dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f56b6
fst dword [esp + 0x38]
fld dword [0x784250]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x5f56c0
mov dword [esp + 0xc], 0x3f800000
jmp 0x5f56c8
fstp st(0)
fld dword [0x7d7d3c]
jmp 0x5f56c4
fld dword [esp + 0x38]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fcomp dword [0x7d7d3c]
mov dword [ecx - 0x5b8], eax
fnstsw ax
test ah, 0x41
jne 0x5f576d
fld dword [edx]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x44
jp 0x5f5710
push 0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [ecx + ebx]
push eax
push edx
push 3
mov ecx, esi
call fcn.0061f880
jmp 0x5f576d
fld dword [esp + 0xc]
fmul dword [0x7a5634]
fld dword [edx]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f572f
fmul dword [0x7842a0]
lea eax, [esp + 0x50]
fstp dword [esp + 0x50]
push eax
lea ecx, [esi + 0xd0]
push ecx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call fcn.0043ca20
add esp, 0xc
lea eax, [esp + 0x50]
push eax
jmp 0x5f56f8
mov eax, dword [esp + 0x20]
mov dword [eax], 0
fld dword [ebp + 8]
fcomp dword [0x7a55f4]
fnstsw ax
test ah, 5
jp 0x5f5870
mov eax, dword [esp + 0x10]
cmp eax, 0x50000
je 0x5f5870
cmp eax, 0x60000
je 0x5f5870
mov ecx, dword [esp + 0x14]
fld dword [ecx]
fcomp dword [edi + 0x6c]
fnstsw ax
test ah, 0x41
jne 0x5f5870
mov eax, dword [edi + 0x68]
test eax, eax
je 0x5f5870
cmp byte [eax], 0
je 0x5f5870
mov edx, dword [esp + 0x14]
fld dword [edi + 0x6c]
fld dword [edx]
push 0x3f800000
fsub st(1)
push 0
fld dword [edi + 0x70]
push ecx
fsub st(2)
fdivp st(1)
fstp dword [esp]
fstp st(0)
call fcn.00401090
fst dword [esp + 0x44]
add esp, 0xc
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5870
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x68], edx
push ecx
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x74], 0
call fcn.0043ca20
fld dword [esp + 0x4c]
fadd dword [esi + 0x70]
mov edx, dword [esp + 0x1c]
fld dword [esi + 0x74]
add esp, 0xc
fadd dword [esp + 0x44]
fld dword [esi + 0x78]
lea ecx, [esp + 0x40]
fadd dword [esp + 0x48]
push ecx
add edx, ebx
fstp dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
fxch st(1)
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
push edx
fstp dword [esp + 0x4c]
push eax
push 4
mov ecx, esi
call fcn.0061f880
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, 4
add edx, eax
inc edi
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x2c]
add eax, 0x10000
add edi, 8
add edx, 0x40
cmp eax, 0x90000
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], edx
jl 0x5f5540
cmp dword [esp + 0x30], 2
jle 0x5f5b2b
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esi + 0x60]
push edx
lea ecx, [esi + 0x5c4]
call fcn.005e7be0
fstp st(0)
mov ecx, dword [esp + 0x30]
mov edi, ecx
imul edi, edi, 0x98
add edi, 0x800ee0
mov eax, dword [edi + 0x44]
cmp byte [eax], 0
mov dword [esp + 0xc], 0
je 0x5f594c
fld dword [esp + 0x3c]
fsub dword [edi + 0x48]
fld dword [edi + 0x4c]
fsub dword [edi + 0x48]
fdivp st(1)
fst dword [esp + 0xc]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f59fb
fld dword [esp + 0xc]
fld dword [0x784250]
fcomp dword [esp + 0xc]
fnstsw ax
test ah, 5
jp 0x5f5948
fstp st(0)
fld dword [0x784250]
fstp dword [esp + 0xc]
mov edx, dword [edi + 0x50]
cmp byte [edx], 0
mov dword [esp + 0x10], 0
je 0x5f59a1
fld dword [esp + 0x3c]
fsub dword [edi + 0x54]
fld dword [edi + 0x58]
fsub dword [edi + 0x54]
fdivp st(1)
fst dword [esp + 0x10]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5a06
fld dword [esp + 0x10]
fld dword [0x784250]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x5f599d
fstp st(0)
fld dword [0x784250]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [esp + 0xc]
fcom dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5a7f
fsub dword [0x784250]
fcom dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5a2d
fld dword [edi + 0x48]
fcomp dword [edi + 0x54]
fnstsw ax
fadd st(0), st(0)
test ah, 5
jp 0x5f5a0e
fsubr dword [esp + 0xc]
fst dword [esp + 0xc]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
je 0x5f5a2f
mov dword [esp + 0xc], 0
jmp 0x5f5a2f
fld dword [0x7d7d3c]
jmp 0x5f5948
fld dword [0x7d7d3c]
jmp 0x5f599d
fsubr dword [esp + 0x10]
fst dword [esp + 0x10]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
je 0x5f5a2f
mov dword [esp + 0x10], 0
jmp 0x5f5a2f
fstp st(0)
fld dword [esp + 0xc]
mov ebx, ecx
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5a57
mov eax, dword [esp + 0xc]
push 0
push ecx
push eax
push 1
mov ecx, esi
call fcn.0061f880
mov ecx, dword [esp + 0x30]
fld dword [esp + 0x10]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5a81
mov ecx, dword [esp + 0x10]
push 0
push ebx
push ecx
push 2
mov ecx, esi
call fcn.0061f880
mov ecx, dword [esp + 0x30]
jmp 0x5f5a81
fstp st(0)
fld dword [esi + 0x370]
fadd dword [esi + 0x374]
fadd dword [esi + 0x378]
fadd dword [esi + 0x37c]
fsub dword [edi + 0x78]
fld dword [edi + 0x7c]
fsub dword [edi + 0x78]
fdivp st(1)
fst dword [esp + 0x2c]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5ad6
fld dword [esp + 0x2c]
fld dword [0x784250]
fcomp dword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x5f5adc
fstp st(0)
mov dword [esp + 0x2c], 0x3f800000
jmp 0x5f5aed
fld dword [0x7d7d3c]
fst dword [esp + 0x2c]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5b2b
mov edi, dword [esi + 0x968]
test edi, edi
mov dword [esp + 0x3c], ecx
je 0x5f5b16
fld dword [esp + 0x2c]
mov ebx, dword [edi]
fmul dword [0x789cf4]
push 0
call fcn.0075bc00
push eax
push 5
mov ecx, edi
call dword [ebx + 0x48]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
push 0
push edx
push eax
push 5
mov ecx, esi
call fcn.0061f880
fld dword [ebp + 8]
fcomp dword [0x7a55fc]
fnstsw ax
test ah, 5
jp 0x5f5be6
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x5f5be6
fld dword [esi + 0x430]
fcomp dword [0x784560]
fnstsw ax
test ah, 0x41
jne 0x5f5be6
mov eax, dword [0x7fb720]
lea ecx, [eax + 0xb4]
push ecx
add eax, 0x3c
push eax
mov ecx, esi
call fcn.005ebe60
mov eax, dword [esi + 0x14]
cmp dword [eax + 4], 1
jne 0x5f5be6
mov cl, byte [eax + 0x900]
test cl, cl
jne 0x5f5be6
mov edx, dword [0x7fb724]
add edx, 3
and edx, reloc.WS2_32.dll_closesocket
jns 0x5f5ba2
dec edx
or edx, 0xfffffffc
inc edx
jne 0x5f5be6
fld dword [esi + 0x430]
fcomp dword [0x784478]
fnstsw ax
test ah, 0x41
jne 0x5f5be6
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5f5c23
mov al, byte [esi + 0x9d4]
test al, al
jne 0x5f5be6
mov eax, dword [0x7a55e0]
mov ecx, dword [0x8650b8]
push str.InDeepWater
push eax
call fcn.00578b30
mov byte [esi + 0x9d4], 1
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x5f5bf5
mov byte [esi + 0x9d4], 0
mov edi, dword [esi + 0x958]
test edi, edi
je 0x5f5c76
lea ebx, [edi + 0xc]
mov ecx, ebx
call fcn.00610850
fcomp dword [0x7a55b0]
fnstsw ax
test ah, 0x41
jne 0x5f5c3c
push 0
push 0
push 0x3f800000
push 7
jmp 0x5f5c6f
mov ecx, dword [0x7a55e4]
push str.InShallowWater
push ecx
mov ecx, dword [0x8650b8]
call fcn.00578b30
jmp 0x5f5bee
mov edx, dword [edi + 0xe0]
and edx, 0x30000000
cmp edx, 0x30000000
jne 0x5f5c76
mov ecx, ebx
call fcn.00610850
fcomp dword [0x7a55b4]
fnstsw ax
test ah, 0x41
jne 0x5f5c76
push 0
push 0
push 0x3f800000
push 6
mov ecx, esi
call fcn.0061f880
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.0059f6f0
test eax, eax
je 0x5f5ccf
fld dword [esi + 0x430]
mov eax, dword [esi + 0x30]
fmul dword [0x78426c]
fld dword [eax + 0x20c]
fabs
fcomp dword [0x78435c]
fnstsw ax
test ah, 0x41
jnp 0x5f5d58
fcomp dword [0x7a5660]
fnstsw ax
test ah, 5
jnp 0x5f5d5a
push 0
push 0
push 0x3f800000
push 0xa
mov ecx, esi
call fcn.0061f880
cmp dword [esi + 0x434], 1
jne 0x5f5dfd
mov ecx, dword [esi + 0x10]
push 4
add ecx, 0x2f0
call fcn.005992a0
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
mov eax, dword [ecx + 0x328]
test eax, eax
fst dword [esp + 0x3c]
je 0x5f5d0f
fadd dword [0x784260]
fst dword [esp + 0x3c]
fcomp dword [0x7844c0]
fnstsw ax
test ah, 1
jne 0x5f5dfd
mov eax, dword [esi + 0x20]
fld dword [eax + 0x1f8]
fsub dword [eax + 0x1f0]
mov al, byte [esi + 0x924]
fld dword [0x7fbed8]
test al, al
fcomp dword [0x784258]
fnstsw ax
je 0x5f5dd0
test ah, 0x44
jnp 0x5f5d79
fld dword [0x7fbed8]
jmp 0x5f5d7f
fstp st(0)
mov ecx, edi
call fcn.0059f6f0
test eax, eax
je 0x5f5cbd
push 0
push 0
push 0x3f800000
push 0xd
jmp 0x5f5cc8
fld dword [esi + 0x440]
fxch st(1)
fmul dword [0x7a562c]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
jne 0x5f5dfd
mov edx, dword [esi + 0x434]
fld dword [esp + 0x3c]
fmul dword [0x7a5d34]
push 0
push edx
push ecx
fstp dword [esp]
push 0xa
mov ecx, esi
call fcn.0061f880
mov ecx, dword [esi + 0x968]
test ecx, ecx
mov byte [esi + 0x924], 0
je 0x5f5dfd
mov eax, dword [ecx]
push 0
push 0
push 9
call dword [eax + 0x48]
jmp 0x5f5dfd
test ah, 0x44
jnp 0x5f5ddd
fld dword [0x7fbed8]
jmp 0x5f5de3
fld dword [esi + 0x440]
fxch st(1)
fmul dword [0x7a5630]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jp 0x5f5dfd
mov byte [esi + 0x924], 1
mov ecx, edi
call fcn.0059f6f0
test eax, eax
je 0x5f5e35
mov ecx, dword [0x890118]
mov eax, dword [ecx]
test eax, eax
je 0x5f5e23
cmp eax, 1
je 0x5f5e23
cmp eax, 2
je 0x5f5e23
cmp eax, 3
jne 0x5f5e35
push 0
push 0
push 0x3f800000
push 0xd
mov ecx, esi
call fcn.0061f880
mov al, byte [esi + 0x95d]
test al, al
je 0x5f5ef3
xor ebx, ebx
mov edi, 0x50000
lea ebx, [ebx]
mov al, byte [esi + ebx + 0x390]
test al, al
je 0x5f5ee0
movsx edx, byte [esi + 0x95c]
mov eax, 1
mov ecx, ebx
shl eax, cl
test eax, edx
je 0x5f5ee0
fld dword [esi + 0x430]
fmul dword [0x78426c]
fsub dword [0x7a5600]
fld dword [0x7a5604]
fsub dword [0x7a5600]
fdivp st(1)
fst dword [esp + 0x34]
fcomp dword [0x7d7d3c]
fnstsw ax
test ah, 0x41
jne 0x5f5ec5
fld dword [esp + 0x34]
fld dword [0x784250]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 5
jp 0x5f5ecb
fstp st(0)
mov dword [esp + 0x3c], 0x3f800000
jmp 0x5f5ecf
fld dword [0x7d7d3c]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
push 0
push edi
push ecx
push 9
mov ecx, esi
call fcn.0061f880
add edi, 0x10000
inc ebx
cmp edi, 0x90000
jl 0x5f5e50
fild dword [0x86518c]
pop edi
fmul dword [0x784268]
fstp dword [esi + 0x9ac]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4