Function at 0x421794
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404968
mov eax, dword [ebp - 8]
call fcn.00404968
mov eax, dword [ebp - 0xc]
call fcn.00404968
mov eax, dword [ebp + 8]
call fcn.00404968
xor eax, eax
push ebp
push 0x421c29
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov dl, 1
mov eax, dword [0x41256c]
call fcn.00403714
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00421698
xor edx, edx
push ebp
push 0x421bda
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x30]
call fcn.0040449c
lea eax, [ebp - 0x2c]
call fcn.0040449c
lea eax, [ebp - 0x94]
push eax
xor ecx, ecx
mov edx, 0x421c44
mov eax, 0x80000002
call fcn.0041c5ac
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x2c]
mov edx, 0x421c64
call fcn.004047c4
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x421c84
mov edx, dword [ebp - 0x2c]
mov eax, 0x80000002
call fcn.0041c5ac
lea eax, [ebp - 0x30]
call fcn.00421660
mov eax, dword [ebp - 0x30]
call fcn.00404978
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x42189d
push 0x421c8c
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x421bc4
push 0x421c98
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
push 0x421ca4
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x34], eax
push 0x421cb0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x40], eax
push 0x421cc0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x38], eax
push 0x421cd0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x3c], eax
test ebx, ebx
je 0x421bc4
cmp dword [ebp - 0x34], 0
je 0x421bc4
cmp dword [ebp - 0x40], 0
je 0x421bc4
cmp dword [ebp - 0x38], 0
je 0x421bc4
cmp dword [ebp - 0x3c], 0
je 0x421bc4
lea eax, [ebp - 0x28]
push eax
push 0
push 1
push 0
push 0
push 0
call ebx
test eax, eax
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x421bc4
xor edx, edx
push ebp
push 0x421bbd
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp + 8], 0
je 0x4219a8
lea edx, [ebp - 0x98]
mov eax, dword [ebp + 8]
call fcn.00408b38
mov edx, dword [ebp - 0x98]
lea eax, [ebp + 8]
call fcn.00404534
lea edx, [ebp - 0x18]
mov eax, dword [ebp + 8]
call fcn.00408ab8
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x18
call fcn.00403004
mov dword [ebp - 0x58], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
shl eax, 3
lea eax, [eax + eax*2]
call fcn.004026fc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
imul eax, eax, 0x202
call fcn.004026fc
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x421b92
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
shl edx, 3
lea edx, [edx + edx*2]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
call fcn.00403004
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x421ad9
inc eax
mov dword [ebp - 0x48], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea ecx, [ebp - 0x9c]
mov edx, esi
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x9c]
call fcn.00404978
push eax
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [ebp - 0x38]
test eax, eax
sete byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x421ad9
lea eax, [esi + esi*2]
mov edx, dword [ebp - 0x1c]
lea ebx, [edx + eax*8]
mov dword [ebx + 4], 1
mov edi, esi
shl edi, 8
add edi, esi
mov eax, dword [ebp - 0x20]
lea eax, [eax + edi*2]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 8]
call fcn.00408c24
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0
jne 0x421a9e
mov eax, dword [ebp - 0x20]
lea eax, [eax + edi*2 + 0x101]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 8]
call fcn.00408c24
mov dword [ebx + 0xc], eax
jmp 0x421ab6
mov eax, dword [ebp - 0x20]
lea eax, [eax + edi*2 + 0x101]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0xc]
call fcn.00408c24
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x3c]
inc esi
dec dword [ebp - 0x48]
jne 0x421a13
cmp byte [ebp - 0xd], 0
je 0x421b56
lea eax, [ebp - 0x90]
xor ecx, ecx
mov edx, 0x30
call fcn.00403004
mov eax, dword [ebp - 8]
call fcn.00404978
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xc]
call fcn.00404978
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x70], eax
cmp dword [ebp + 8], 0
je 0x421b2c
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], eax
jmp 0x421b31
xor eax, eax
mov dword [ebp - 0x64], eax
cmp dword [ebp + 8], 0
setne al
and eax, 0x7f
mov dword [ebp - 0x68], eax
push 0
push 1
lea eax, [ebp - 0x90]
push eax
push 0
push 0
call dword [ebp - 0x40]
test eax, eax
sete byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421b99
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
imul edx, eax, 0x202
mov eax, dword [ebp - 0x20]
call fcn.0040271c
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
shl edx, 3
lea edx, [edx + edx*2]
mov eax, dword [ebp - 0x1c]
call fcn.0040271c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421be1
mov eax, dword [ebp - 0x44]
call fcn.00403744
ret