Function at 0x4e3e08
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 0x4e40d8
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 0x4e4090
push 0x4e40e8
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x4e408e
push 0x4e40f8
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [ebp - 4], edi
push 0x4e4110
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
push 0x4e4130
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
push 0x4e4148
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x4e416c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
test edi, edi
je 0x4e408a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4e4090
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
xor edx, edx
push ebp
push 0x4e4070
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 0x4e404f
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 0x4e4043
cmp dword [ebp - 0x10], 0
je 0x4e403f
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 0x4e404a
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 0x4e4035
cmp dword [ebp - 0x14], 0
je 0x4e4033
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [ebp - 0x14]
jmp 0x4e4035
xor ebx, ebx
mov eax, dword [ebp - 0x28]
call fcn.00402f14
jmp 0x4e404a
xor ebx, ebx
jmp 0x4e404a
call sub.kernel32.dll_GetLastError_1
mov esi, eax
inc dword [ebp - 0x20]
jmp 0x4e4051
xor ebx, ebx
test esi, esi
je 0x4e3f5a
cmp dword [ebp - 8], 0
je 0x4e4066
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 0x4e407c
inc dword [ebp - 0x30]
dec dword [ebp - 0x34]
jne 0x4e3ed5
jmp 0x4e4090
xor ebx, ebx
jmp 0x4e4090
xor ebx, ebx
test ebx, ebx
jne 0x4e409e
mov eax, 0x4e4188
call fcn.00448c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e40df
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