Function at 0x401b80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
cmp dword [ebp + 8], 0
jb 0x401b93
cmp dword [ebp + 8], 8
jb 0x401b9a
xor eax, eax
jmp 0x401f81
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
cmp dword [ecx], 0
je 0x401bb6
cmp dword [ebp + 8], 0
je 0x401bb6
xor eax, eax
jmp 0x401f81
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
cmp dword [eax], 0
jne 0x401c0e
push 0xfc
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0xfc
add ecx, 0x421cc0
push ecx
call fcn.00406110
push 0x2000
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x421bc0]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
cmp dword [eax], 0
jne 0x401c0e
xor eax, eax
jmp 0x401f81
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
mov ecx, dword [ecx + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 8]
mov esi, dword [edx*4 + 0x421bc0]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
add eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
mov ecx, dword [ecx + 8]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [edx + 0x14]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov dword [edx + 0x28], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov dword [edx + 0xf4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov dword [ecx + 0xf8], 0
mov dword [ebp - 4], 0
jmp 0x401d52
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x401d9c
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4 + 0x34], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4 + 0x74], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ebp - 4]
mov dword [ecx + edx*4 + 0xb4], 0
jmp 0x401d49
cmp dword [ebp + 8], 0
jne 0x401dac
mov dword [0x41bef4], 0
push 0x2c
lea eax, [ebp - 0x5c]
push eax
call fcn.00406110
mov dword [ebp - 0x5c], 0x14
mov dword [ebp - 0x58], 1
push 0
push 0x41a014
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00404010
test eax, eax
jne 0x401e1a
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov dword [ecx], 0
xor eax, eax
jmp 0x401f81
cmp dword [ebp + 8], 0
jne 0x401e93
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
mov ecx, dword [0x41c380]
mov dword [eax + 4], ecx
cmp dword [ebp + 0xc], 0
je 0x401e8e
mov dword [ebp - 0x30], 0x2c
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x401e8e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowPlacement]
jmp 0x401f7c
push 0
mov ecx, dword [0x421580]
push ecx
push 0
mov edx, dword [0x41c380]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 8]
sub edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x10]
or ecx, 0x56020000
push ecx
push 0x41befc
push str.WinBatchBoxWindow
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x421bc0]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x421bc0]
cmp dword [eax + 4], 0
jne 0x401f3e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x421bc0]
mov dword [edx], 0
xor eax, eax
jmp 0x401f81
push 0x13
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x421bc0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
mov dword [0x41bef0], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc