Function at 0x4af138
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x9a
push 0
push 0
dec ecx
jne 0x4af140
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405738
xor eax, eax
push ebp
push 0x4af68c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x45c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004057a8
mov eax, dword [ebp - 0x45c]
mov edx, 0x4af6a0
call fcn.00405694
je 0x4af19f
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4af6a0
call fcn.00405594
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
push 0x4af6a4
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4af64e
push 0x4af6b4
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x3c], eax
push 0x4af6cc
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x40], eax
push 0x4af6e4
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x44], eax
push 0x4af6fc
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x48], eax
push 0x4af718
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x4c], eax
push 0x4af73c
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x3c], 0
je 0x4af24a
cmp dword [ebp - 0x40], 0
je 0x4af24a
cmp dword [ebp - 0x48], 0
je 0x4af24a
cmp dword [ebp - 0x4c], 0
je 0x4af24a
cmp dword [ebp - 0x44], 0
je 0x4af24a
cmp dword [ebp - 0x50], 0
jne 0x4af258
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_FreeLibrary_1
jmp 0x4af64e
push 0
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
push 0
push 0
call dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4af281
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_FreeLibrary_1
jmp 0x4af64e
push 0
mov eax, dword [ebp - 4]
call fcn.00405748
push eax
mov eax, dword [ebp - 0x30]
push eax
push 6
push 0
push 0
push 0
call dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x4af2b2
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_FreeLibrary_1
jmp 0x4af64e
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x70], 0x1c
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x3c]
test al, al
je 0x4af638
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x4b4], eax
mov byte [ebp - 0x4b0], 0
movzx eax, word [ebp - 0x68]
mov dword [ebp - 0x4ac], eax
mov byte [ebp - 0x4a8], 0
movzx eax, word [ebp - 0x66]
mov dword [ebp - 0x4a4], eax
mov byte [ebp - 0x4a0], 0
xor eax, eax
mov al, byte [ebp - 0x64]
mov dword [ebp - 0x49c], eax
mov byte [ebp - 0x498], 0
xor eax, eax
mov al, byte [ebp - 0x63]
mov dword [ebp - 0x494], eax
mov byte [ebp - 0x490], 0
xor eax, eax
mov al, byte [ebp - 0x62]
mov dword [ebp - 0x48c], eax
mov byte [ebp - 0x488], 0
xor eax, eax
mov al, byte [ebp - 0x61]
mov dword [ebp - 0x484], eax
mov byte [ebp - 0x480], 0
xor eax, eax
mov al, byte [ebp - 0x60]
mov dword [ebp - 0x47c], eax
mov byte [ebp - 0x478], 0
xor eax, eax
mov al, byte [ebp - 0x5f]
mov dword [ebp - 0x474], eax
mov byte [ebp - 0x470], 0
xor eax, eax
mov al, byte [ebp - 0x5e]
mov dword [ebp - 0x46c], eax
mov byte [ebp - 0x468], 0
xor eax, eax
mov al, byte [ebp - 0x5d]
mov dword [ebp - 0x464], eax
mov byte [ebp - 0x460], 0
lea edx, [ebp - 0x4b4]
mov ecx, 0xa
mov eax, 0x4af764
call fcn.0040beb0
lea eax, [ebp - 0x1c]
call fcn.00405278
lea eax, [ebp - 0x14]
push eax
push 0x3e8
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x4c]
test al, al
je 0x4af426
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4af426
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp byte [ebp + eax - 0x459], 0
je 0x4af426
lea eax, [ebp - 0x4b8]
mov edx, dword [ebp - 0x18]
mov dl, byte [ebp + edx - 0x459]
call fcn.00405460
mov edx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x1c]
call fcn.00405550
inc dword [ebp - 0x18]
dec dword [ebp - 0x54]
jne 0x4af3ee
lea edx, [ebp - 0x4bc]
mov eax, dword [ebp - 0x1c]
call fcn.004af080
mov edx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x1c]
call fcn.00405310
lea eax, [ebp - 0x20]
call fcn.00405278
lea eax, [ebp - 0x14]
push eax
push 0x3e8
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x10]
push eax
push 9
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x4c]
test al, al
je 0x4af4b8
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4af4b8
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp byte [ebp + eax - 0x459], 0
je 0x4af4b8
lea eax, [ebp - 0x4c0]
mov edx, dword [ebp - 0x18]
mov dl, byte [ebp + edx - 0x459]
call fcn.00405460
mov edx, dword [ebp - 0x4c0]
lea eax, [ebp - 0x20]
call fcn.00405550
inc dword [ebp - 0x18]
dec dword [ebp - 0x54]
jne 0x4af480
lea eax, [ebp - 0x24]
call fcn.00405278
lea eax, [ebp - 0x14]
push eax
push 0x3e8
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xc
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x4c]
test al, al
je 0x4af52e
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4af52e
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp byte [ebp + eax - 0x459], 0
je 0x4af52e
lea eax, [ebp - 0x4c4]
mov edx, dword [ebp - 0x18]
mov dl, byte [ebp + edx - 0x459]
call fcn.00405460
mov edx, dword [ebp - 0x4c4]
lea eax, [ebp - 0x24]
call fcn.00405550
inc dword [ebp - 0x18]
dec dword [ebp - 0x54]
jne 0x4af4f6
lea eax, [ebp - 0x2c]
call fcn.00405278
lea eax, [ebp - 0x14]
push eax
push 0x3e8
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x48]
test al, al
je 0x4af59e
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4af59e
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp byte [ebp + eax - 0x459], 0
je 0x4af59e
lea eax, [ebp - 0x4c8]
mov edx, dword [ebp - 0x18]
mov dl, byte [ebp + edx - 0x459]
call fcn.00405460
mov edx, dword [ebp - 0x4c8]
lea eax, [ebp - 0x2c]
call fcn.00405550
inc dword [ebp - 0x18]
dec dword [ebp - 0x54]
jne 0x4af566
lea edx, [ebp - 0x4cc]
mov eax, dword [ebp - 0x1c]
call fcn.0040a348
mov edx, dword [ebp - 0x4cc]
lea eax, [ebp - 0x1c]
call fcn.00405310
lea edx, [ebp - 0x4d0]
mov eax, dword [ebp - 0x24]
call fcn.0040a348
mov edx, dword [ebp - 0x4d0]
lea eax, [ebp - 0x24]
call fcn.00405310
cmp dword [ebp - 0x24], 0
je 0x4af5e7
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
call fcn.00405310
cmp dword [ebp - 0x1c], 0
je 0x4af628
push dword [ebp - 0x28]
push 0x4af7a0
push dword [ebp - 0x20]
push 0x4af7a0
push dword [ebp - 0x2c]
push 0x4af7a0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x4d4]
mov edx, 7
call fcn.00405608
mov edx, dword [ebp - 0x4d4]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x80000000
jne 0x4af2b7
mov eax, dword [ebp - 0x38]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x90]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af693
lea eax, [ebp - 0x4d4]
mov edx, 8
call fcn.0040529c
lea eax, [ebp - 0x45c]
call fcn.00405278
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.0040529c
lea eax, [ebp - 4]
call fcn.00405278
ret