Function at 0x402030
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.004026ba
test eax, eax
je 0x40208f
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401b90
test eax, eax
je 0x402083
push 0x40
push 0x103000
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 0xffffffffffffffff
call dword [0x420420]
test eax, eax
jne 0x402083
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x402083
mov cx, word [0x420418]
mov dword [8], eax
mov byte [0x16], 4
mov dword [0x60], 0x401eb0
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], 0x401f40
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 0x4021d1
movzx edx, byte [0x40a17c]
xor dl, 0x86
mov byte [esi], dl
movzx ecx, byte [0x40a17d]
xor cl, 0x86
mov byte [esi + 1], cl
movzx edx, byte [0x40a17e]
lea eax, [esi + 1]
xor dl, 0x86
mov byte [esi + 2], dl
movzx ecx, byte [0x40a17f]
xor cl, 0x86
mov byte [esi + 3], cl
movzx edx, byte [0x40a180]
xor dl, 0x86
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 0x4021c8
mov cl, byte [eax]
cmp cl, 0x5c
je 0x4021b6
cmp cl, 0x72
jne 0x402198
mov byte [eax - 1], 0xd
jmp 0x4021b6
cmp cl, 0x6e
jne 0x4021a3
mov byte [eax - 1], 0xa
jmp 0x4021b6
cmp cl, 0x74
jne 0x4021ae
mov byte [eax - 1], 9
jmp 0x4021b6
cmp cl, 0x22
jne 0x4021c8
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 0x402180
mov eax, 8
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x402292
movzx edx, byte [0x40a184]
xor dl, 0x86
mov byte [ebx], dl
movzx ecx, byte [0x40a185]
xor cl, 0x86
mov byte [ebx + 1], cl
movzx edx, byte [0x40a186]
lea eax, [ebx + 1]
xor dl, 0x86
mov byte [ebx + 2], dl
movzx ecx, byte [0x40a187]
xor cl, 0x86
mov byte [ebx + 3], cl
movzx edx, byte [0x40a188]
xor dl, 0x86
mov byte [ebx + 4], dl
movzx ecx, byte [0x40a189]
xor cl, 0x86
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 0x402289
mov cl, byte [eax]
cmp cl, 0x5c
je 0x402276
cmp cl, 0x72
jne 0x402258
mov byte [eax - 1], 0xd
jmp 0x402276
cmp cl, 0x6e
jne 0x402263
mov byte [eax - 1], 0xa
jmp 0x402276
cmp cl, 0x74
jne 0x40226e
mov byte [eax - 1], 9
jmp 0x402276
cmp cl, 0x22
jne 0x402289
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 0x402240
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x402083
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 0x402083
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 0x402361
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x24], 0x118
jne 0x402341
cmp dword [0x420414], 0
jne 0x40232b
mov dword [ebp - 0x28], 0
jmp 0x402341
cmp dword [0x420424], 0
mov dword [ebp - 0x28], esi
jne 0x402341
mov dword [0x420424], 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 0x402310
mov eax, dword [0x420424]
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret