Function at 0x408e80
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb8
push ebx
push esi
push edi
mov ebx, ecx
add ebx, ebx
inc ebx
test ebx, ebx
js 0x408e9c
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x408e95
mov edx, esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
inc ecx
mov eax, dword [ebp - 0x2c]
mov edx, dword [0x408648]
call fcn.00404d40
lea eax, [ebp - 0x1c]
mov edx, dword [0x408698]
call fcn.00404afc
lea esi, [ebp - 0x448]
xor eax, eax
push ebp
push 0x4091e1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409200
push esi
call sub.kernel32.dll_lstrcpyA
push 0x409208
push esi
call sub.kernel32.dll_lstrcatA
push 0x409210
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x409214
push esi
call sub.kernel32.dll_lstrcpyA
push 0x40921c
push esi
call sub.kernel32.dll_lstrcatA
push 0x409224
push esi
call sub.kernel32.dll_lstrcatA
push esi
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x40], eax
push 0x409228
push esi
call sub.kernel32.dll_lstrcpyA
push 0x409230
push esi
call sub.kernel32.dll_lstrcatA
push 0x409238
push esi
call sub.kernel32.dll_lstrcatA
push esi
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x44], eax
push 0x409240
push esi
call sub.kernel32.dll_lstrcpyA
push 0x409248
push esi
call sub.kernel32.dll_lstrcatA
push 0x409250
push esi
call sub.kernel32.dll_lstrcatA
push esi
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x20], eax
push 0x409254
push esi
call sub.kernel32.dll_lstrcpyA
push 0x40925c
push esi
call sub.kernel32.dll_lstrcatA
push 0x409264
push esi
call sub.kernel32.dll_lstrcatA
push esi
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x24], eax
push 0x40926c
push esi
call sub.kernel32.dll_lstrcpyA
push 0x409270
push esi
call sub.kernel32.dll_lstrcatA
push 0x409274
push esi
call sub.kernel32.dll_lstrcatA
push esi
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 8], eax
push 1
push 0x2000
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
push eax
push 0
call dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0xc], edx
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.00402d9c
lea eax, [ebp - 0x3c]
push eax
push 2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x44]
mov eax, dword [ebp - 8]
lea esi, [eax + 0x18]
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x14]
add esi, eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x4090d5
inc eax
mov dword [ebp - 0x48], eax
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edi, dword [esi + eax*8 + 8]
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
mov dword [ebp - 0x38], eax
cmp edi, dword [ebp - 0x38]
jae 0x409095
xor edi, dword [ebp - 0x38]
xor dword [ebp - 0x38], edi
xor edi, dword [ebp - 0x38]
push 4
push 0x1000
push edi
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0xc]
add eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, edi
call fcn.004034ec
mov edx, dword [ebp - 0x34]
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
call fcn.00402d9c
inc ebx
dec dword [ebp - 0x48]
jne 0x409076
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x40866c]
call fcn.004051f0
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x409116
push ebp
add eax, dword [ebp - 0x10]
call fcn.00408a6c
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x40912d
push ebp
add eax, dword [ebp - 0x10]
call fcn.00408d38
pop ecx
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x409166
inc eax
mov dword [ebp - 0x48], eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
push eax
lea edi, [ebx + ebx*4]
mov eax, dword [esi + edi*8 + 0x24]
call fcn.004089fc
push eax
mov eax, dword [esi + edi*8 + 8]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x44]
inc ebx
dec dword [ebp - 0x48]
jne 0x40913f
cmp dword [ebp - 0x18], 0
je 0x409188
push 0
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x18]
test al, al
jne 0x409188
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
call fcn.004086b8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x4091a2
push ebp
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x7c]
add eax, dword [ebp - 0x10]
call fcn.00408c24
pop ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov ecx, dword [0x408698]
call fcn.00404e18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091e8
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
inc ecx
mov edx, dword [0x408648]
call fcn.00404c0c
lea eax, [ebp - 0x1c]
mov edx, dword [0x408698]
call fcn.00404bc0
ret