Function at 0x592588
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.00404cfc
lea esi, [ebp - 0x10]
xor eax, eax
push ebp
push 0x592b2d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6661a4], 0
jne 0x5926ae
push 0x592b3c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x6661a4], eax
cmp dword [0x6661a4], 0
jne 0x592606
mov eax, dword [esi]
mov byte [eax + 0x15c], 1
jmp 0x592b02
push 0x592b48
mov eax, dword [0x6661a4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6661a8], eax
push 0x592b58
mov eax, dword [0x6661a4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6661ac], eax
push 0x592b6c
mov eax, dword [0x6661a4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6661b0], eax
push 0x592b80
mov eax, dword [0x6661a4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6661b4], eax
push 0x592b94
mov eax, dword [0x6661a4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6661b8], eax
push 0x592ba8
mov eax, dword [0x6661a4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6661bc], eax
push 0x592bb8
mov eax, dword [0x6661a4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6661c0], eax
push 0x592bcc
mov eax, dword [0x6661a4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x6661c4], eax
mov eax, dword [esi]
cmp byte [eax + 0x38], 0
jne 0x5926f8
mov eax, dword [esi]
cmp byte [eax + 0x13c], 0
je 0x5926f8
mov eax, dword [esi]
call fcn.00586948
test al, al
jne 0x5926f8
mov eax, dword [esi]
mov eax, dword [eax + 0x120]
push eax
mov eax, dword [esi]
push eax
push fcn.00592588
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
mov ecx, dword [esi]
mov dl, 1
mov eax, dword [0x58613c]
call fcn.00592230
jmp 0x592b02
mov eax, dword [esi]
mov byte [eax + 0x15c], 0
lea eax, [ebp - 0x88]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404d6c
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.004090ac
mov eax, dword [ebp - 0x84]
mov edx, 0x592be8
call fcn.00404c58
je 0x592749
push ebp
call fcn.00592568
pop ecx
jmp 0x592b02
lea eax, [ebp - 0x14]
mov ecx, 7
mov edx, 1
call fcn.00404dac
mov edx, dword [ebp - 0x14]
mov eax, 0x592bf8
call fcn.00404e50
mov ebx, eax
cmp ebx, 1
jge 0x59277b
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x38]
jmp 0x592b02
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404d6c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404b14
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00404d6c
mov edx, dword [ebp - 0x18]
mov eax, 0x592c04
call fcn.00404e50
mov ebx, eax
test ebx, ebx
jle 0x5927fe
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404b14
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x18]
call fcn.00404d6c
mov eax, dword [ebp - 0x8c]
mov edx, 0x50
call fcn.004095f8
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.00404d6c
jmp 0x592803
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 + 0x144], 0
jne 0x592856
push 0
push 0
push 0
push 1
push 0x592c08
call dword [0x6661a8]
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
push 0
push 0
push edi
mov eax, dword [ebp - 0x18]
call fcn.00404d0c
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x6661b0]
mov dword [ebp - 8], eax
jmp 0x5928b1
push 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
call fcn.00404d0c
push eax
push 3
push 0x592c08
call dword [0x6661a8]
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
mov eax, dword [esi]
mov eax, dword [eax + 0x14c]
call fcn.00404d0c
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x148]
call fcn.00404d0c
push eax
push edi
mov eax, dword [ebp - 0x18]
call fcn.00404d0c
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x6661b0]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5928ca
push ebp
call fcn.00592520
pop ecx
push ebp
call fcn.00592568
pop ecx
jmp 0x592b02
push 0
push 0x84400000
push 0
push 0
push 0x592c14
mov eax, dword [ebp - 0x1c]
call fcn.00404d0c
push eax
push 0x592c20
mov eax, dword [ebp - 8]
push eax
call dword [0x6661b4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x59290e
push ebp
call fcn.00592520
pop ecx
push ebp
call fcn.00592568
pop ecx
jmp 0x592b02
mov eax, 0x10000
call fcn.004027ac
mov ebx, eax
mov dl, 1
mov eax, dword [0x419d80]
call fcn.00403a3c
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x6661b8]
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 [0x6661bc]
test eax, eax
je 0x592981
mov edi, ebx
mov eax, dword [ebp - 0x24]
mov byte [edi + eax], 0
lea edx, [ebp - 0x90]
mov eax, edi
call fcn.0040a024
mov eax, dword [ebp - 0x90]
xor edx, edx
call fcn.004095f8
mov dword [ebp - 0x24], eax
jmp 0x592986
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x592a72
mov eax, dword [esi]
add eax, 0x15c
mov dword [ebp - 0x58], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x160]
mov dword [ebp - 0x80], edx
mov edx, dword [eax + 0x164]
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.00403234
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 [0x6661c4]
test eax, eax
je 0x592aa4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x592aa4
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 0x592a54
mov eax, dword [ebp - 0x20]
call fcn.0041e634
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 [0x592c24]
fmulp st(1)
call fcn.00402ccc
mov ecx, eax
mov edx, dword [esi]
mov eax, dword [ebp - 0x7c]
call dword [ebp - 0x80]
mov eax, dword [ebp - 0x20]
call fcn.0041e634
cmp eax, dword [ebp - 0x24]
jae 0x592aa4
mov eax, dword [esi]
cmp byte [eax + 0x15c], 0
je 0x5929c9
jmp 0x592aa4
lea eax, [ebp - 0x28]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 4]
push eax
call dword [0x6661c0]
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 0x592aa4
mov eax, dword [esi]
cmp byte [eax + 0x15c], 0
je 0x592a72
mov eax, ebx
call fcn.004027cc
push ebp
call fcn.00592520
pop ecx
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041e620
xor eax, eax
push ebp
push 0x592afb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
cmp byte [eax + 0x15c], 0
jne 0x592ae5
mov edx, dword [ebp - 0x20]
mov eax, dword [esi]
mov si, 0xffe4
call fcn.00403c68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592b02
mov eax, dword [ebp - 0x20]
call fcn.00403a6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592b34
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.00404880
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404880
ret