Function at 0x4a7804
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x4a780c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a7c92
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00405618
dec eax
test eax, eax
jle 0x4a7bfd
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
add eax, 0x45
call fcn.004a4134
xor eax, eax
call fcn.004a42a0
mov ebx, dword [ebp - 8]
lea ebx, [ebx + ebx*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4 + 0x10]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov eax, dword [edx + eax*4 + 4]
call fcn.004a38d8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov dword [edx + ebx*4 + 4], eax
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov edx, dword [edx + eax*4 + 0xc]
add edx, 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4 + 0xc]
sub eax, 5
call fcn.00498010
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov dword [edx + ebx*4 + 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00405618
dec eax
cmp eax, dword [ebp - 8]
jne 0x4a7a23
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
cmp dword [edx + eax*4 + 0xc], 0xf
jl 0x4a7a23
lea edx, [ebp - 0x1c]
mov eax, dword [0x4bafb4]
mov eax, dword [eax]
call fcn.0049f81c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 4
call fcn.00404298
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040884c
mov eax, dword [ebp - 0x20]
call fcn.00404504
test eax, eax
jle 0x4a7a23
xor eax, eax
push ebp
push 0x4a7a19
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
call fcn.00405e98
push eax
lea eax, [ebp - 0x34]
xor edx, edx
mov cl, 1
call fcn.004140d0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
lea eax, [ebp - 0x44]
xor edx, edx
mov cl, 1
call fcn.004140d0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
lea eax, [ebp - 0x48]
call fcn.00405e98
push eax
push 0x4a7ca4
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov eax, dword [edx + eax*4 + 4]
lea edx, [ebp - 0x4c]
call fcn.004a2d9c
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [eax]
call dword [eax + 0xbc]
call fcn.00405fa8
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
call fcn.00405fa8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov ecx, 0x4a7cb0
call fcn.00405edc
lea eax, [ebp - 0x54]
call fcn.00404950
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xe8]
call fcn.00405fa8
push dword [ebp - 0x54]
push 0x4a7cc4
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
call fcn.00404ab4
push dword [ebp - 0x58]
push 0x4a7ce4
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00404ba4
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0xe4]
call fcn.00405fa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a7a23
push 3
mov ebx, dword [ebp - 8]
lea ebx, [ebx + ebx*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4 + 4]
push eax
call sub.user32.dll_ShowWindow
push 0x4a7d8c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4 + 0xc]
lea edx, [ebp - 0x60]
call fcn.00408b3c
push dword [ebp - 0x60]
push 0x4a7d9c
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.004045c4
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
imul ecx, dword [eax + ebx*4 + 0xc], 0x3e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004a2108
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.00405618
dec eax
cmp eax, dword [ebp - 8]
jle 0x4a7bf1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4 + 0x24]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov esi, dword [edx + eax*4 + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp esi, dword [eax + ebx*4 + 4]
je 0x4a7ad0
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
mov eax, dword [edx + eax*4 + 4]
call fcn.004a2628
push 3
push esi
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
cmp dword [eax + ebx*4 + 0x1c], 0
jne 0x4a7b06
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, esi
call fcn.004a3c38
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x45], edx
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x49], edx
jmp 0x4a7b32
push 0
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + ebx*4 + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov eax, esi
call fcn.004a3d70
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x45], edx
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x49], edx
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x45]
test ebx, ebx
jle 0x4a7ba1
mov eax, dword [0x4bb774]
mov eax, dword [eax]
call fcn.00461e4c
cmp ebx, eax
jge 0x4a7ba1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x49], 0
jle 0x4a7ba1
mov eax, dword [0x4bb774]
mov eax, dword [eax]
call fcn.00461e40
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x49]
jle 0x4a7ba1
push 0x4a7db4
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 8]
inc eax
call fcn.00408b3c
push dword [ebp - 0x70]
push 0x4a7dcc
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.004045c4
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
xor ecx, ecx
call fcn.004a2108
jmp 0x4a7bf1
push 0
push 0
call sub.user32.dll_SetCursorPos
mov edx, 0x5dc
mov eax, 0x320
call fcn.00498010
push eax
push 0x4a7ddc
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 8]
inc eax
call fcn.00408b3c
push dword [ebp - 0x78]
push 0x4a7df0
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.004045c4
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
pop ecx
call fcn.004a2108
jmp 0x4a7bfd
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4a7845
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, 0x4a7e0c
call fcn.004a25b0
mov eax, dword [ebp - 4]
mov byte [eax + 0x40], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7c99
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.00404268
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00404268
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00404968
lea eax, [ebp - 0x4c]
call fcn.00405e98
lea eax, [ebp - 0x48]
call fcn.00405e98
lea eax, [ebp - 0x44]
mov edx, dword [0x4010e8]
mov ecx, 2
call fcn.00404f1c
lea eax, [ebp - 0x24]
call fcn.00405e98
lea eax, [ebp - 0x20]
call fcn.00404244
lea eax, [ebp - 0x1c]
mov edx, dword [0x49c170]
call fcn.00404ed0
lea eax, [ebp - 0xc]
call fcn.00405e98
ret