Function at 0x4e5124
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb9c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x458], eax
xor eax, eax
push ebp
push 0x4e53f4
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4e53ac
push 0x4e5404
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x4e53aa
push 0x4e5414
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [ebp - 4], edi
push 0x4e542c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
push 0x4e544c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
push 0x4e5464
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x4e5488
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
test edi, edi
je 0x4e53a6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4e53ac
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
xor edx, edx
push ebp
push 0x4e538c
push dword fs:[edx]
mov dword fs:[edx], esp
push 4
push 0
lea ecx, [ebp - 0x458]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x30]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x458]
call fcn.00405b6c
push eax
push 0
call dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x1c
call fcn.00403b3c
mov dword [ebp - 0x50], 0x1c
lea eax, [ebp - 0x451]
xor ecx, ecx
mov edx, 0x401
call fcn.00403b3c
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x451]
mov ecx, 0x1c
call fcn.00408b40
lea eax, [ebp - 0x451]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor esi, esi
cmp dword [ebp - 0xc], 0
je 0x4e536b
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x4e535f
cmp dword [ebp - 0x10], 0
je 0x4e535b
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x10]
cmp dword [ebp - 0x2c], 0
jbe 0x4e5366
mov eax, dword [ebp - 0x2c]
call fcn.00402ef8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x10]
lea ecx, [ebp - 0x460]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x460]
call fcn.00405b6c
mov edx, eax
lea eax, [ebp - 0x45c]
call fcn.00406020
mov eax, dword [ebp - 0x45c]
push eax
lea eax, [ebp - 0x464]
mov edx, dword [ebp - 0x28]
call fcn.00406020
mov edx, dword [ebp - 0x464]
pop eax
call fcn.004063e8
dec eax
jne 0x4e5351
cmp dword [ebp - 0x14], 0
je 0x4e534f
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x14]
jmp 0x4e5351
xor ebx, ebx
mov eax, dword [ebp - 0x28]
call fcn.00402f14
jmp 0x4e5366
xor ebx, ebx
jmp 0x4e5366
call sub.kernel32.dll_GetLastError_1
mov esi, eax
inc dword [ebp - 0x20]
jmp 0x4e536d
xor ebx, ebx
test esi, esi
je 0x4e5276
cmp dword [ebp - 8], 0
je 0x4e5382
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e5398
inc dword [ebp - 0x30]
dec dword [ebp - 0x34]
jne 0x4e51f1
jmp 0x4e53ac
xor ebx, ebx
jmp 0x4e53ac
xor ebx, ebx
test ebx, ebx
jne 0x4e53ba
mov eax, 0x4e54a4
call fcn.00448c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e53fb
lea eax, [ebp - 0x464]
call fcn.00405ee4
lea eax, [ebp - 0x460]
call fcn.004056dc
lea eax, [ebp - 0x45c]
call fcn.00405ee4
lea eax, [ebp - 0x458]
call fcn.004056dc
ret