Function at 0x4e2078
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4e23a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5d2f10]
cmp dword [eax], 0x20
jae 0x4e20ac
mov eax, 0x4e23b8
call fcn.0045934c
jmp 0x4e237a
push 0x4e23d4
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d3170]
mov dword [eax], esi
mov eax, dword [0x5d3170]
test esi, esi
je 0x4e20d9
mov eax, dword [0x5d3170]
mov eax, dword [eax]
call eax
push 0x4e23e4
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d2c7c]
mov dword [eax], esi
mov eax, dword [0x5d2c7c]
test esi, esi
je 0x4e210b
mov eax, ebx
call fcn.004dfbb8
mov eax, ebx
call fcn.004e0090
push 0x4e23f4
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d2e90]
mov dword [eax], esi
mov eax, dword [0x5d2e90]
test esi, esi
je 0x4e216e
mov eax, ebx
call fcn.004ddd80
mov eax, ebx
call fcn.004ddf1c
mov eax, ebx
call fcn.004de3e4
mov eax, ebx
call fcn.004de8d4
mov eax, ebx
call fcn.004deac4
mov eax, ebx
call fcn.004decdc
mov eax, ebx
call fcn.004def28
mov eax, ebx
call fcn.004df17c
mov eax, ebx
call fcn.004df248
mov eax, dword [ebx + 0x42c]
mov edx, dword [eax]
call dword [edx + 0xd0]
mov eax, dword [ebx + 0x434]
mov edx, dword [eax]
call dword [edx + 0xd0]
push 0x4e2408
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d2bfc]
mov dword [eax], esi
mov eax, dword [0x5d2bfc]
test esi, esi
je 0x4e230b
mov eax, dword [ebx + 0x498]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp al, 1
jne 0x4e21d0
mov dword [ebx + 0x5bc], 1
jmp 0x4e21d8
xor eax, eax
mov dword [ebx + 0x5bc], eax
mov eax, dword [ebx + 0x5bc]
push eax
push 3
mov eax, dword [0x5d2bfc]
mov eax, dword [eax]
call eax
cmp al, 1
jne 0x4e22fb
push 0x4e2410
mov eax, dword [0x5d2f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
mov eax, dword [0x5d3034]
mov dword [eax], esi
mov eax, dword [0x5d3034]
test esi, esi
je 0x4e230b
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5d3034]
mov eax, dword [eax]
call eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00403f3c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x42c]
call fcn.00434264
mov eax, dword [ebx + 0x5b4]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp al, 1
jne 0x4e2276
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x42c]
call fcn.00434234
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x5d298c]
mov eax, dword [eax]
mov edx, 0x4e2428
call fcn.005c8cdc
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x5d3034]
mov eax, dword [eax]
call eax
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00403f3c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x434]
call fcn.00434264
mov esi, dword [ebx + 0x36c]
mov eax, dword [esi + 0x1ec]
mov edx, 0x4e2448
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, eax
mov eax, esi
call fcn.0042c140
mov eax, dword [ebx + 0x5b4]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp al, 1
jne 0x4e22f1
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x434]
call fcn.00434234
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x5d298c]
mov eax, dword [eax]
mov edx, 0x4e2460
call fcn.005c8cdc
mov eax, dword [0x5d2d68]
mov byte [eax], 1
jmp 0x4e230b
mov edx, 0x4e2480
mov eax, dword [ebx + 0x4f4]
call fcn.00434264
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x42c]
call fcn.00434234
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
call fcn.00408fb8
cmp dword [ebp - 4], 0
je 0x4e2346
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x42c]
call fcn.00434234
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x440]
call fcn.00434264
mov eax, dword [ebx + 0x5b4]
mov edx, dword [eax]
call dword [edx + 0xb8]
cmp al, 1
jne 0x4e237a
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x440]
call fcn.00434234
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x5d298c]
mov eax, dword [eax]
mov edx, 0x4e24a0
call fcn.005c8cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e23a7
lea eax, [ebp - 0xc]
call fcn.00403cf8
lea eax, [ebp - 8]
call fcn.004043b4
lea eax, [ebp - 4]
call fcn.00403cf8
ret