Function at 0x401fb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x2c
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x58], 0x30
call sub.ntdll.dll_memset
xor eax, eax
mov esi, 1
add esp, 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x1000
mov dword [ebp - 0xc], esi
call fcn.0040263c
test eax, eax
je 0x40200f
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401b00
test eax, eax
je 0x402003
push 0x40
push 0x103000
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0xffffffffffffffff
call dword [0x420640]
test eax, eax
jne 0x402003
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x402003
mov cx, word [0x420638]
mov dword [8], eax
mov byte [0x16], 4
mov dword [0x60], 0x401e30
mov dword [0x6c], 0x400
mov dword [0x404], esi
mov dword [0x408], 0x800
mov word [0x40c], cx
mov byte [0x40e], 1
push 0
mov dword [ebp - 0x50], 0x401ec0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x44], eax
mov eax, 8
call sub.ntdll.dll__alloca_probe
mov esi, esp
mov dword [ebp - 4], esi
test esi, esi
je 0x402151
movzx edx, byte [0x409e6c]
xor dl, 0x8d
mov byte [esi], dl
movzx ecx, byte [0x409e6d]
xor cl, 0x8d
mov byte [esi + 1], cl
movzx edx, byte [0x409e6e]
lea eax, [esi + 1]
xor dl, 0x8d
mov byte [esi + 2], dl
movzx ecx, byte [0x409e6f]
xor cl, 0x8d
mov byte [esi + 3], cl
movzx edx, byte [0x409e70]
xor dl, 0x8d
mov byte [esi + 4], dl
or edx, 0xffffffff
mov byte [esi + 5], 0
sub edx, esi
lea esp, [esp]
cmp byte [eax - 1], 0x5c
jne 0x402148
mov cl, byte [eax]
cmp cl, 0x5c
je 0x402136
cmp cl, 0x72
jne 0x402118
mov byte [eax - 1], 0xd
jmp 0x402136
cmp cl, 0x6e
jne 0x402123
mov byte [eax - 1], 0xa
jmp 0x402136
cmp cl, 0x74
jne 0x40212e
mov byte [eax - 1], 9
jmp 0x402136
cmp cl, 0x22
jne 0x402148
mov byte [eax - 1], cl
mov ecx, 5
sub ecx, edx
sub ecx, eax
lea esi, [eax + 1]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov esi, esp
inc eax
lea ecx, [edx + eax]
cmp ecx, 5
jb 0x402100
mov eax, 8
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x402212
movzx edx, byte [0x409e74]
xor dl, 0x96
mov byte [ebx], dl
movzx ecx, byte [0x409e75]
xor cl, 0x96
mov byte [ebx + 1], cl
movzx edx, byte [0x409e76]
lea eax, [ebx + 1]
xor dl, 0x96
mov byte [ebx + 2], dl
movzx ecx, byte [0x409e77]
xor cl, 0x96
mov byte [ebx + 3], cl
movzx edx, byte [0x409e78]
xor dl, 0x96
mov byte [ebx + 4], dl
movzx ecx, byte [0x409e79]
xor cl, 0x96
or edx, 0xffffffff
mov byte [ebx + 5], cl
mov byte [ebx + 6], 0
sub edx, ebx
mov edi, edi
cmp byte [eax - 1], 0x5c
jne 0x402209
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4021f6
cmp cl, 0x72
jne 0x4021d8
mov byte [eax - 1], 0xd
jmp 0x4021f6
cmp cl, 0x6e
jne 0x4021e3
mov byte [eax - 1], 0xa
jmp 0x4021f6
cmp cl, 0x74
jne 0x4021ee
mov byte [eax - 1], 9
jmp 0x4021f6
cmp cl, 0x22
jne 0x402209
mov byte [eax - 1], cl
mov ecx, 6
sub ecx, edx
sub ecx, eax
lea esi, [eax + 1]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
inc eax
lea ecx, [edx + eax]
cmp ecx, 6
jb 0x4021c0
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x402003
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
push 0
push 0x64
push 0xc8
push 0x80000000
push 0x80000000
push 0xcf0000
push ebx
push esi
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x402003
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x4022e1
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x24], 0x118
jne 0x4022c1
cmp dword [0x420634], 0
jne 0x4022ab
mov dword [ebp - 0x28], 0
jmp 0x4022c1
cmp dword [0x420644], 0
mov dword [ebp - 0x28], esi
jne 0x4022c1
mov dword [0x420644], 1
lea ecx, [ebp - 0x28]
push ecx
call ebx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x402290
mov eax, dword [0x420644]
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret