Function at 0x6129d0
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.0040512c
lea esi, [ebp - 0x10]
xor eax, eax
push ebp
push 0x612f66
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x997bb8], 0
jne 0x612af6
push 0x612f74
call sub.kernel32.dll_LoadLibraryA
mov dword [0x997bb8], eax
cmp dword [0x997bb8], 0
jne 0x612a4e
mov eax, dword [esi]
mov byte [eax + 0x1c0], 1
jmp 0x612f3b
push 0x612f80
mov eax, dword [0x997bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x997bbc], eax
push 0x612f90
mov eax, dword [0x997bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x997bc0], eax
push 0x612fa4
mov eax, dword [0x997bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x997bc4], eax
push 0x612fb8
mov eax, dword [0x997bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x997bc8], eax
push 0x612fcc
mov eax, dword [0x997bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x997bcc], eax
push 0x612fe0
mov eax, dword [0x997bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x997bd0], eax
push 0x612ff0
mov eax, dword [0x997bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x997bd4], eax
push 0x613004
mov eax, dword [0x997bb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x997bd8], eax
mov eax, dword [esi]
cmp byte [eax + 0x38], 0
jne 0x612b31
mov eax, dword [esi]
cmp byte [eax + 0x198], 0
je 0x612b31
mov eax, dword [esi]
call fcn.005fd378
test al, al
jne 0x612b31
mov eax, dword [esi]
push eax
push fcn.006129d0
push 0
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [esi]
call fcn.006125b8
jmp 0x612f3b
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.0040519c
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.0040ae38
mov eax, dword [ebp - 0x84]
mov edx, 0x613020
call fcn.00405088
je 0x612b82
push ebp
call fcn.006129b0
pop ecx
jmp 0x612f3b
lea eax, [ebp - 0x14]
mov ecx, 7
mov edx, 1
call fcn.004051dc
mov edx, dword [ebp - 0x14]
mov eax, 0x613030
call fcn.00405280
mov ebx, eax
cmp ebx, 1
jge 0x612bb4
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x38]
jmp 0x612f3b
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.0040519c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404f44
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.0040519c
mov edx, dword [ebp - 0x18]
mov eax, 0x61303c
call fcn.00405280
mov ebx, eax
test ebx, ebx
jle 0x612c37
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404f44
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x18]
call fcn.0040519c
mov eax, dword [ebp - 0x8c]
mov edx, 0x50
call fcn.0040b934
mov edi, eax
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.0040519c
jmp 0x612c3c
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 0x612c8f
push 0
push 0
push 0
push 1
push 0x613040
call dword [0x997bbc]
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
push 0
push 0
push edi
mov eax, dword [ebp - 0x18]
call fcn.0040513c
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x997bc4]
mov dword [ebp - 8], eax
jmp 0x612cea
push 0
push 0
mov eax, dword [esi]
mov eax, dword [eax + 0x1a8]
call fcn.0040513c
push eax
push 3
push 0x613040
call dword [0x997bbc]
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
call fcn.0040513c
push eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1ac]
call fcn.0040513c
push eax
push edi
mov eax, dword [ebp - 0x18]
call fcn.0040513c
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x997bc4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x612d03
push ebp
call fcn.00612968
pop ecx
push ebp
call fcn.006129b0
pop ecx
jmp 0x612f3b
push 0
push 0x84400000
push 0
push 0
push 0x61304c
mov eax, dword [ebp - 0x1c]
call fcn.0040513c
push eax
push 0x613058
mov eax, dword [ebp - 8]
push eax
call dword [0x997bc8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x612d47
push ebp
call fcn.00612968
pop ecx
push ebp
call fcn.006129b0
pop ecx
jmp 0x612f3b
mov eax, 0x10000
call fcn.00402ab4
mov ebx, eax
mov dl, 1
mov eax, dword [0x41f018]
call fcn.00403dfc
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x997bcc]
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 [0x997bd0]
test eax, eax
je 0x612dba
mov edi, ebx
mov eax, dword [ebp - 0x24]
mov byte [edi + eax], 0
lea edx, [ebp - 0x90]
mov eax, edi
call fcn.0040c500
mov eax, dword [ebp - 0x90]
xor edx, edx
call fcn.0040b934
mov dword [ebp - 0x24], eax
jmp 0x612dbf
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x612eab
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.0040357c
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 [0x997bd8]
test eax, eax
je 0x612edd
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x612edd
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 0x612e8d
mov eax, dword [ebp - 0x20]
call fcn.00424530
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 [0x61305c]
fmulp st(1)
call fcn.00403008
mov ecx, eax
mov edx, dword [esi]
mov eax, dword [ebp - 0x7c]
call dword [ebp - 0x80]
mov eax, dword [ebp - 0x20]
call fcn.00424530
cmp eax, dword [ebp - 0x24]
jae 0x612edd
mov eax, dword [esi]
cmp byte [eax + 0x1c0], 0
je 0x612e02
jmp 0x612edd
lea eax, [ebp - 0x28]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 4]
push eax
call dword [0x997bd4]
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 0x612edd
mov eax, dword [esi]
cmp byte [eax + 0x1c0], 0
je 0x612eab
mov eax, ebx
call fcn.00402ad4
push ebp
call fcn.00612968
pop ecx
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0042451c
xor eax, eax
push ebp
push 0x612f34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
cmp byte [eax + 0x1c0], 0
jne 0x612f1e
mov edx, dword [ebp - 0x20]
mov eax, dword [esi]
mov si, 0xffe4
call fcn.00404028
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x612f3b
mov eax, dword [ebp - 0x20]
call fcn.00403e2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x612f6d
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.00404ca0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404ca0
ret