Function at 0x420258
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x420261
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040461c
mov eax, dword [ebp - 8]
call fcn.0040461c
xor eax, eax
push ebp
push 0x420760
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x14]
call fcn.00404188
mov eax, esi
call fcn.00404188
lea eax, [ebp - 0x18]
call fcn.00404188
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.004072f8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
call fcn.00404220
mov eax, dword [0x425d64]
cmp byte [eax], 0
je 0x4202e3
lea eax, [ebp - 4]
mov edx, dword [0x425e4c]
mov edx, dword [edx]
call fcn.00404220
push dword [ebp - 4]
push 0x42077c
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004044ec
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
mov eax, dword [0x425d6c]
call fcn.00404d84
mov edx, 0x420788
call fcn.00404848
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00406ee8
mov edx, eax
pop eax
call fcn.00403000
mov dl, 0x20
call fcn.00402fb0
mov edx, dword [ebp - 0x1c]
call fcn.00404848
call fcn.004030b0
mov eax, dword [ebp - 0x1c]
call fcn.00406ee8
test al, al
je 0x42039d
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.00413cf0
mov eax, ebx
add al, 0xfe
sub al, 2
jae 0x420559
cmp dword [ebp - 0x14], 0
je 0x420559
lea edx, [ebp - 0x28]
mov al, 1
call fcn.0040cc30
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 8]
call fcn.00404478
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00413dcc
jmp 0x420559
mov eax, dword [0x425d64]
cmp byte [eax], 0
jne 0x420559
call fcn.0041c144
test al, al
je 0x420559
xor edx, edx
mov eax, 0x1f4
call fcn.0040be84
cmp bl, 1
jne 0x420403
call fcn.0041a368
push eax
call fcn.0041a264
push eax
lea ecx, [ebp - 0x2c]
mov edx, 0x4207a4
mov eax, 0x4207c8
call fcn.0041a3e4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
call fcn.0041a2dc
mov ecx, dword [ebp - 0x30]
mov eax, dword [0x425e7c]
mov eax, dword [eax]
pop edx
call fcn.004193a0
cmp bl, 2
jne 0x420442
call fcn.0041a368
push eax
call fcn.0041a264
push eax
lea ecx, [ebp - 0x34]
mov edx, 0x4207d4
mov eax, 0x4207f8
call fcn.0041a3e4
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
call fcn.0041a2dc
mov ecx, dword [ebp - 0x38]
mov eax, dword [0x425e7c]
mov eax, dword [eax]
pop edx
call fcn.004193a0
cmp bl, 3
jne 0x420481
call fcn.0041a368
push eax
call fcn.0041a264
push eax
lea ecx, [ebp - 0x3c]
mov edx, 0x420804
mov eax, 0x420828
call fcn.0041a3e4
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
call fcn.0041a2dc
mov ecx, dword [ebp - 0x40]
mov eax, dword [0x425e7c]
mov eax, dword [eax]
pop edx
call fcn.004193a0
push dword [ebp - 4]
push 0x420834
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004044ec
lea eax, [ebp - 0x18]
call fcn.00404188
xor eax, eax
call fcn.0041c160
cmp bl, 2
jne 0x4204c0
call fcn.0041acd8
test al, al
je 0x4204c0
mov eax, dword [0x425e34]
cmp dword [eax], 1
jne 0x4204c4
xor eax, eax
jmp 0x4204c6
mov al, 1
mov byte [ebp - 0x1d], al
mov eax, ebx
add al, 0xfe
sub al, 2
jae 0x4204e9
lea edx, [ebp - 0x44]
mov al, 1
call fcn.0040cc30
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 8]
call fcn.00404478
cmp byte [ebp - 0x1d], 0
je 0x4204fe
push 5
mov eax, dword [0x425d40]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x425e34]
cmp dword [eax], 1
jne 0x420512
mov edi, dword [0x425d40]
mov edi, dword [edi]
jmp 0x420514
xor edi, edi
lea eax, [ebp - 0x14]
push eax
push 0x41b9d4
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.0041c54c
mov edx, dword [ebp - 0x48]
mov eax, esi
call fcn.004041dc
cmp byte [ebp - 0x1d], 0
je 0x42054d
push 0
mov eax, dword [0x425d40]
mov eax, dword [eax]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, 0x1f4
call fcn.0040be84
mov eax, ebx
sub al, 1
jne 0x4205d7
cmp dword [esi], 0
jne 0x420589
cmp dword [ebp - 0x14], 0
je 0x420589
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
xor eax, eax
call fcn.0041bae4
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.004041dc
cmp dword [esi], 0
jne 0x4205c1
cmp dword [ebp - 0x14], 0
je 0x4205c1
lea edx, [ebp - 0x50]
mov al, 1
call fcn.0040cc30
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 8]
call fcn.00404478
push 0
push 0
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00413dcc
mov byte [ebp - 9], 1
mov edx, dword [esi]
mov eax, 0x420840
call fcn.00404770
dec eax
jne 0x4205d7
mov eax, esi
call fcn.00404188
mov eax, ebx
add al, 0xfe
sub al, 2
jae 0x42072b
cmp dword [esi], 0
jne 0x42064c
mov byte [ebp - 9], 1
mov eax, dword [0x425da4]
mov eax, dword [eax]
mov ecx, ebx
mov edx, dword [ebp - 0x18]
call fcn.00420168
test al, al
jne 0x42064c
mov byte [ebp - 9], 0
push 0x42084c
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0041bae4
mov eax, dword [ebp - 0x18]
call fcn.00407150
lea eax, [ebp - 0x54]
call fcn.0041a048
mov eax, dword [ebp - 0x54]
push eax
call fcn.0041a264
push eax
lea eax, [ebp - 0x58]
call fcn.0041a0f8
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.0040c260
cmp dword [esi], 0
je 0x42072b
mov eax, dword [ebp - 0x1c]
call fcn.0040442c
cmp eax, 2
jle 0x42072b
call fcn.0041acd8
test al, al
je 0x42072b
call fcn.0041c168
test al, al
je 0x420690
lea ecx, [ebp - 0x10]
mov edx, 0x420868
mov eax, 0x420888
call fcn.0041a3e4
jmp 0x420702
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 1], 0x3a
je 0x4206ac
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, 0x420894
call fcn.0040bda8
test al, al
je 0x4206d8
push dword [ebp - 0x1c]
push 0x4208a0
lea ecx, [ebp - 0x5c]
mov edx, 0x4208b0
mov eax, 0x4208c8
call fcn.0041a3e4
push dword [ebp - 0x5c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004044ec
jmp 0x420702
push dword [ebp - 0x1c]
push 0x4208a0
lea ecx, [ebp - 0x60]
mov edx, 0x4208d4
mov eax, 0x4208f8
call fcn.0041a3e4
push dword [ebp - 0x60]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004044ec
lea eax, [ebp - 0x64]
call fcn.0041a048
mov eax, dword [ebp - 0x64]
push eax
call fcn.0041a264
push eax
push 0
lea eax, [ebp - 0x68]
call fcn.0041a1e8
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x10]
xor eax, eax
call fcn.0040c2f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420767
lea eax, [ebp - 0x68]
mov edx, 0x12
call fcn.004041ac
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004041ac
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041ac
ret