Function at 0x494efc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x494f1d
add esp, 0xfffffff0
call fcn.00403ce8
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x495157
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403994
push 0x495180
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x494f72
lea edx, [ebp - 0x28]
mov eax, dword [0x4f32a4]
call fcn.00406c94
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x408468]
call fcn.0040db60
call fcn.00404214
mov eax, dword [ebp - 0xc]
push eax
call sub.DUData.dll__DUDataInit_4
test al, al
jne 0x494f8b
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 1
jmp 0x495134
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 0
push 0x49518c
push 0
push 0
call fcn.00407230
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push 0x4951a0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push 0x4951b0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push 0x4951c4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push 0x4951d0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push 0x4951e0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push 0x4951f0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
push 0x4951fc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
push 0x495208
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
push 0x495214
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
push 0x495220
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov byte [eax], 0
mov dl, 1
mov eax, dword [0x41b4e4]
call fcn.00403994
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x1c]
mov edx, 0x3e80
call fcn.00404ec8
mov eax, dword [ebp - 0x1c]
call fcn.00404d3c
mov dword [ebp - 0x20], eax
mov eax, dword [0x4f3718]
cmp dword [eax], 2
jne 0x4950d9
mov eax, dword [0x4f30b4]
cmp dword [eax], 5
jl 0x4950d9
lea edx, [ebp - 0x2c]
mov eax, dword [0x4f339c]
call fcn.00406c94
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.DUData.dll__DUDataInterfaces_8
test al, al
je 0x495134
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x495134
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x20]
call fcn.0040a368
test eax, eax
jbe 0x49512c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
call fcn.00404a74
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x20]
call fcn.0040a368
inc eax
add dword [ebp - 0x20], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x4950fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49515e
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004048a0
lea eax, [ebp - 0x1c]
call fcn.0040487c
ret