Function at 0x496eb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x496ebf
add esp, 0xfffffff0
call fcn.004041e0
mov ebx, edx
mov edi, eax
push 0x4971a4
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov dword [edi + 0x1c], esi
test esi, esi
jne 0x496eec
mov ecx, 0x4971b8
mov dl, 1
mov eax, dword [0x408490]
call fcn.0040d6f0
call fcn.00404648
push 0x4971d0
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x24], eax
push 0x4971e4
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x28], eax
push 0x4971f8
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x2c], eax
push 0x497208
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x30], eax
push 0x497218
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x34], eax
push 0x497228
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x38], eax
push 0x497248
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x3c], eax
push 0x497258
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x40], eax
push 0x497264
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x44], eax
push 0x497278
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x48], eax
push 0x497284
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x4c], eax
push 0x497290
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x50], eax
push 0x49729c
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x54], eax
push 0x4972b4
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x58], eax
push 0x4972c0
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x5c], eax
push 0x4972d0
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x60], eax
push 0x4972d8
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x64], eax
push 0x4972e8
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x68], eax
push 0x4972f0
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x6c], eax
push 0x497308
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x70], eax
push 0x497314
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x74], eax
push 0x497320
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x78], eax
push 0x49732c
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x7c], eax
push 0x49733c
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x80], eax
push 0x497348
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x84], eax
push 0x497350
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x88], eax
cmp dword [edi + 0x24], 0
je 0x49716c
cmp dword [edi + 0x28], 0
je 0x49716c
cmp dword [edi + 0x2c], 0
je 0x49716c
cmp dword [edi + 0x30], 0
je 0x49716c
cmp dword [edi + 0x34], 0
je 0x49716c
cmp dword [edi + 0x38], 0
je 0x49716c
cmp dword [edi + 0x40], 0
je 0x49716c
cmp dword [edi + 0x44], 0
je 0x49716c
cmp dword [edi + 0x48], 0
je 0x49716c
cmp dword [edi + 0x58], 0
je 0x49716c
cmp dword [edi + 0x5c], 0
je 0x49716c
cmp dword [edi + 0x60], 0
je 0x49716c
cmp dword [edi + 0x64], 0
je 0x49716c
cmp dword [edi + 0x4c], 0
je 0x49716c
cmp dword [edi + 0x50], 0
je 0x49716c
cmp dword [edi + 0x54], 0
je 0x49716c
cmp dword [edi + 0x3c], 0
je 0x49716c
cmp dword [edi + 0x70], 0
je 0x49716c
cmp dword [edi + 0x74], 0
je 0x49716c
cmp dword [edi + 0x78], 0
je 0x49716c
cmp dword [edi + 0x7c], 0
je 0x49716c
cmp dword [edi + 0x80], 0
je 0x49716c
cmp dword [edi + 0x84], 0
je 0x49716c
cmp dword [edi + 0x88], 0
je 0x49716c
cmp dword [edi + 0x68], 0
je 0x49716c
cmp dword [edi + 0x6c], 0
jne 0x497182
mov ecx, 0x497364
mov dl, 1
mov eax, dword [0x408490]
call fcn.0040d6f0
call fcn.00404648
call dword [edi + 0x24]
mov dword [edi + 0x20], eax
mov eax, edi
test bl, bl
je 0x49719d
call fcn.00404238
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret