Function at 0x451668
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov esi, edx
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404478
xor eax, eax
push ebp
push 0x451991
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403fc8
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.00450844
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 4]
call fcn.00404060
push 0x4519a0
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x451961
push 0x4519b0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov esi, edi
test edi, edi
je 0x451753
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call esi
test al, al
jne 0x451718
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x18]
xor edx, edx
call fcn.00450b24
cmp dword [ebp - 0x14], 0
jbe 0x451760
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00404614
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404288
push eax
lea eax, [ebp - 0x18]
call fcn.004044e0
push eax
lea eax, [ebp - 0x38]
push eax
call esi
test al, al
jne 0x451760
lea eax, [ebp - 0x18]
call fcn.00403fc8
jmp 0x451760
lea eax, [ebp - 0x18]
mov edx, 0x4519d4
call fcn.00404060
push 0x4519fc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
push 0x451a14
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x24], eax
push 0x451a30
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x28], eax
push 0x451a54
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
test esi, esi
je 0x45195b
cmp dword [ebp - 0x24], 0
je 0x45195b
cmp dword [ebp - 0x28], 0
je 0x45195b
cmp dword [ebp - 0x20], 0
je 0x45195b
push 0x12
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call esi
mov esi, eax
mov dword [ebp - 0x54], 0x1c
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x38]
call fcn.00450d40
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push esi
call dword [ebp - 0x24]
test al, al
je 0x451943
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0x54]
push eax
push esi
call dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.004026bc
mov edi, eax
mov dword [edi], 5
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x54]
push eax
push esi
call dword [ebp - 0x28]
test al, al
je 0x451937
lea eax, [ebp - 0x18]
lea edx, [edi + 4]
call fcn.004041c0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
call fcn.004507f4
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x18]
call fcn.00404060
mov eax, dword [ebp - 0x18]
mov edx, 0x451a7c
call fcn.004043d4
je 0x451937
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x18]
call fcn.00450844
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004045cc
dec eax
jne 0x451937
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x18]
call fcn.00450844
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x1c]
call fcn.004045cc
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404288
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404288
pop edx
sub edx, eax
inc edx
pop eax
cmp eax, edx
jne 0x451937
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4518de
mov eax, dword [ebp - 8]
mov edx, 0x451a88
call fcn.00404290
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x451a94
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404288
push eax
mov eax, dword [ebp - 4]
call fcn.00404288
pop edx
sub edx, eax
push edx
mov eax, dword [ebp - 0x1c]
call fcn.00404288
pop edx
sub edx, eax
dec edx
push edx
mov eax, dword [ebp - 4]
call fcn.00404288
mov edx, eax
inc edx
mov eax, dword [ebp - 0x18]
pop ecx
call fcn.004044e8
push dword [ebp - 0x68]
push 0x451a94
mov eax, dword [ebp - 8]
mov edx, 4
call fcn.00404348
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.004026dc
jmp 0x45194f
call sub.kernel32.dll_GetLastError
cmp eax, 0x103
je 0x451957
inc dword [ebp - 0xc]
jmp 0x4517e2
push esi
call dword [ebp - 0x20]
push ebx
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451998
lea eax, [ebp - 0x68]
mov edx, 5
call fcn.00403fec
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403fec
lea eax, [ebp - 4]
call fcn.00403fc8
ret