Function at 0x404ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x80
cmp eax, 0x26c
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov ecx, 5
jl 0x404f0e
mov dword [esp + 0x9c], 0x26c
jmp 0x404f19
cmp eax, ecx
jge 0x404f19
mov dword [esp + 0x9c], ecx
mov eax, dword [esp + 0xa0]
cmp eax, 0x1a8
jl 0x404f34
mov dword [esp + 0xa0], 0x1a8
jmp 0x404f3f
cmp eax, ecx
jg 0x404f3f
mov dword [esp + 0xa0], ecx
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x47bafc]
lea ecx, [esp + 0x28]
push ecx
push ebp
mov dword [esp + 0x34], eax
call esi
mov edx, dword [esp + 0x28]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x2c], 0
call edi
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x30]
push 4
lea edx, [esp + 0x28]
push edx
push ecx
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [esp + 0x30]
push edx
call ebx
mov eax, dword [0x47bb00]
lea ecx, [esp + 0x34]
push ecx
push ebp
mov dword [esp + 0x38], eax
call esi
mov edx, dword [esp + 0x34]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x30], 0
call edi
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x34]
push 4
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [esp + 0x2c]
push edx
call ebx
mov eax, dword [0x47bb04]
lea ecx, [esp + 0x38]
push ecx
push ebp
mov dword [esp + 0x38], eax
call esi
mov edx, dword [esp + 0x38]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x24], 0
call edi
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x34]
push 4
lea edx, [esp + 0x20]
push edx
push ecx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [esp + 0x2c]
push edx
call ebx
mov eax, dword [0x47bb08]
lea ecx, [esp + 0x3c]
push ecx
push ebp
mov dword [esp + 0x38], eax
call esi
mov edx, dword [esp + 0x3c]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x28], 0
call edi
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x34]
push 4
lea edx, [esp + 0x24]
push edx
push ecx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [esp + 0x2c]
push edx
call ebx
lea eax, [esp + 0x40]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x40]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x1c], 0
call edi
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x18]
push ecx
add edx, 0x44
push edx
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x30]
push eax
call ebx
lea ecx, [esp + 0x44]
push ecx
push ebp
call esi
mov edx, dword [esp + 0x44]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x20], 0
call edi
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x20]
push 4
lea edx, [esp + 0x1c]
push edx
add ecx, 0x48
push ecx
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [esp + 0x30]
push edx
call ebx
push 0x23
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x10]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x405143
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x14]
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jle 0x40533d
mov eax, dword [0x47bafc]
cmp eax, 0x27f
jle 0x4051e8
mov dword [esp + 0x30], eax
lea eax, [esp + 0x48]
push eax
push ebp
call esi
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x9c]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x58], ecx
call edi
mov edx, dword [esp + 0x30]
push 0
push 4
lea ecx, [esp + 0x54]
push ecx
push edx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x2c]
push eax
call ebx
mov ecx, dword [0x47bb00]
lea edx, [esp + 0x50]
push edx
push ebp
mov dword [esp + 0x38], ecx
call esi
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0xa0]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x60], eax
call edi
mov ecx, dword [esp + 0x30]
push 0
push 4
lea edx, [esp + 0x5c]
push edx
push ecx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x2c]
push edx
call ebx
mov eax, dword [0x47bafc]
cmp dword [0x47bb00], 0x1c2
jle 0x40528d
mov dword [esp + 0x30], eax
lea eax, [esp + 0x58]
push eax
push ebp
call esi
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x9c]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x68], ecx
call edi
mov edx, dword [esp + 0x30]
push 0
push 4
lea ecx, [esp + 0x64]
push ecx
push edx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x2c]
push eax
call ebx
mov ecx, dword [0x47bb00]
lea edx, [esp + 0x60]
push edx
push ebp
mov dword [esp + 0x38], ecx
call esi
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0xa0]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x70], eax
call edi
mov ecx, dword [esp + 0x30]
push 0
push 4
lea edx, [esp + 0x6c]
push edx
push ecx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x2c]
push edx
call ebx
mov eax, dword [0x47bafc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x68]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x68]
sub ecx, dword [esp + 0x10]
push edx
add ecx, dword [esp + 0xa0]
push 0
push 0x1fffff
mov dword [esp + 0x78], ecx
call edi
mov edx, dword [esp + 0x30]
push 0
push 4
lea ecx, [esp + 0x74]
push ecx
push edx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x2c]
push eax
call ebx
mov ecx, dword [0x47bb00]
lea edx, [esp + 0x70]
push edx
push ebp
mov dword [esp + 0x38], ecx
call esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
sub eax, dword [esp + 0x14]
push ecx
add eax, dword [esp + 0xa4]
push 0
push 0x1fffff
mov dword [esp + 0x80], eax
call edi
mov ecx, dword [esp + 0x30]
push 0
push 4
lea edx, [esp + 0x7c]
push edx
push ecx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [esp + 0x2c]
push edx
call ebx
push 0x50
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404f51
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
jg 0x405364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esp, 0x80
ret