Function at 0x593660
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.00404fe0
lea esi, [ebp - 0x10]
xor eax, eax
push ebp
push 0x593bf6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x677828], 0
jne 0x593786
push 0x593c04
call sub.kernel32.dll_LoadLibraryA
mov dword [0x677828], eax
cmp dword [0x677828], 0
jne 0x5936de
mov eax, dword [esi]
mov byte [eax + 0x1c0], 1
jmp 0x593bcb
push 0x593c10
mov eax, dword [0x677828]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x67782c], eax
push 0x593c20
mov eax, dword [0x677828]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x677830], eax
push 0x593c34
mov eax, dword [0x677828]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x677834], eax
push 0x593c48
mov eax, dword [0x677828]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x677838], eax
push 0x593c5c
mov eax, dword [0x677828]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x67783c], eax
push 0x593c70
mov eax, dword [0x677828]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x677840], eax
push 0x593c80
mov eax, dword [0x677828]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x677844], eax
push 0x593c94
mov eax, dword [0x677828]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x677848], eax
mov eax, dword [esi]
cmp byte [eax + 0x38], 0
jne 0x5937c1
mov eax, dword [esi]
cmp byte [eax + 0x198], 0
je 0x5937c1
mov eax, dword [esi]
call fcn.00581140
test al, al
jne 0x5937c1
mov eax, dword [esi]
push eax
push fcn.00593660
push 0
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [esi]
call fcn.0059324c
jmp 0x593bcb
mov eax, dword [esi]
mov byte [eax + 0x1c0], 0
lea eax, [ebp - 0x88]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00405050
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.0040a754
mov eax, dword [ebp - 0x84]
mov edx, 0x593cb0
call fcn.00404f3c
je 0x593812
push ebp
call fcn.00593640
pop ecx
jmp 0x593bcb
lea eax, [ebp - 0x14]
mov ecx, 7
mov edx, 1
call fcn.00405090
mov edx, dword [ebp - 0x14]
mov eax, 0x593cc0
call fcn.00405134
mov ebx, eax
cmp ebx, 1
jge 0x593844
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x38]
jmp 0x593bcb
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00405050
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404df8
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00405050
mov edx, dword [ebp - 0x18]
mov eax, 0x593ccc
call fcn.00405134
mov ebx, eax
test ebx, ebx
jle 0x5938c7
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404df8
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x18]
call fcn.00405050
mov eax, dword [ebp - 0x8c]
mov edx, 0x50
call fcn.0040aeec
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.00405050
jmp 0x5938cc
mov edi, 0x50
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
cmp dword [eax + 0x1a8], 0
jne 0x59391f
push 0
push 0
push 0
push 1
push 0x593cd0
call dword [0x67782c]
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
push 0
push 0
push edi
mov eax, dword [ebp - 0x18]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x677834]
mov dword [ebp - 8], eax
jmp 0x59397a
push 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x1a8]
call fcn.00404ff0
push eax
push 3
push 0x593cd0
call dword [0x67782c]
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
call fcn.00404ff0
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1ac]
call fcn.00404ff0
push eax
push edi
mov eax, dword [ebp - 0x18]
call fcn.00404ff0
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x677834]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x593993
push ebp
call fcn.005935f8
pop ecx
push ebp
call fcn.00593640
pop ecx
jmp 0x593bcb
push 0
push 0x84400000
push 0
push 0
push 0x593cdc
mov eax, dword [ebp - 0x1c]
call fcn.00404ff0
push eax
push 0x593ce8
mov eax, dword [ebp - 8]
push eax
call dword [0x677838]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5939d7
push ebp
call fcn.005935f8
pop ecx
push ebp
call fcn.00593640
pop ecx
jmp 0x593bcb
mov eax, 0x10000
call fcn.00402a68
mov ebx, eax
mov dl, 1
mov eax, dword [0x41b968]
call fcn.00403cf4
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x67783c]
mov dword [ebp - 0x24], 0x10000
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
push 5
mov eax, dword [ebp - 4]
push eax
call dword [0x677840]
test eax, eax
je 0x593a4a
mov edi, ebx
mov eax, dword [ebp - 0x24]
mov byte [edi + eax], 0
lea edx, [ebp - 0x90]
mov eax, edi
call fcn.0040b53c
mov eax, dword [ebp - 0x90]
xor edx, edx
call fcn.0040aeec
mov dword [ebp - 0x24], eax
jmp 0x593a4f
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x593b3b
mov eax, dword [esi]
add eax, 0x1c0
mov dword [ebp - 0x58], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x1c8]
mov dword [ebp - 0x80], edx
mov edx, dword [eax + 0x1cc]
mov dword [ebp - 0x7c], edx
mov eax, dword [esi]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x28
call fcn.004034f8
mov dword [ebp - 0x50], 0x28
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0x10000
push 0
push 8
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [0x677848]
test eax, eax
je 0x593b6d
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x593b6d
mov edx, dword [ebp - 0x3c]
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp word [ebp - 0x7e], 0
je 0x593b1d
mov eax, dword [ebp - 0x20]
call fcn.00420270
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
fild qword [ebp - 0x98]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xa0], eax
xor eax, eax
mov dword [ebp - 0x9c], eax
fild qword [ebp - 0xa0]
fdivr dword [0x593cec]
fmulp st(1)
call fcn.00402f84
mov ecx, eax
mov edx, dword [esi]
mov eax, dword [ebp - 0x7c]
call dword [ebp - 0x80]
mov eax, dword [ebp - 0x20]
call fcn.00420270
cmp eax, dword [ebp - 0x24]
jae 0x593b6d
mov eax, dword [esi]
cmp byte [eax + 0x1c0], 0
je 0x593a92
jmp 0x593b6d
lea eax, [ebp - 0x28]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 4]
push eax
call dword [0x677844]
mov edx, ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 0x28], 0
je 0x593b6d
mov eax, dword [esi]
cmp byte [eax + 0x1c0], 0
je 0x593b3b
mov eax, ebx
call fcn.00402a88
push ebp
call fcn.005935f8
pop ecx
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0042025c
xor eax, eax
push ebp
push 0x593bc4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
cmp byte [eax + 0x1c0], 0
jne 0x593bae
mov edx, dword [ebp - 0x20]
mov eax, dword [esi]
mov si, 0xffe3
call fcn.00403f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x593bcb
mov eax, dword [ebp - 0x20]
call fcn.00403d24
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x593bfd
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.00404b54
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404b54
ret