Function at 0x401b30
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x2548]
lea ebp, [esi + 0x2548]
test al, al
jne 0x401c5b
call fcn.00401000
test al, al
je 0x401c04
lea edi, [esi + 0x2444]
mov ecx, esi
push edi
call fcn.004036d0
mov edx, ebp
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b6e
cmp byte [ebp], 0
jne 0x401c5b
mov al, byte [esi + 0x2654]
mov ebx, dword [esp + 0x48]
test al, al
je 0x401bf4
xor ebp, ebp
cmp ebx, ebp
je 0x401bdb
lea edi, [esi + 0x28cc]
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x28d4]
mov edx, dword [edi]
sub eax, edx
cmp eax, 0x100
jge 0x401bbf
mov dword [esi + 0x2658], 0x80
mov ecx, esi
mov dword [esi + 0x208], ebp
mov dword [esi + 0x20c], 0x40140000
call fcn.0040be00
jmp 0x401c5f
mov ecx, esi
mov dword [esi + 0x208], ebp
mov dword [esi + 0x20c], 0x4072c000
call fcn.0040be00
jmp 0x401c5f
mov ecx, esi
mov byte [esi + 0x1d5], 1
call fcn.0040be00
jmp 0x401c5f
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004012a0
mov ebx, dword [esp + 0x18]
mov edi, eax
add esp, 8
cmp edi, 1
jle 0x401c3c
mov ecx, dword [ebx + 4]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x401c28
mov dword [esi + 0x264c], 0
test edi, edi
jle 0x401c52
mov edx, dword [ebx + edi*4 - 4]
dec edi
push edx
call fcn.00461a52
add esp, 4
test edi, edi
jg 0x401c40
push ebx
call fcn.00461a52
add esp, 4
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
test eax, eax
jne 0x401cc9
xor edi, edi
push 0x65
push ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0x401560
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x4751fc
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401cc3
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret 0xc
mov dword [esi + 0x265c], ebp
lea edi, [esi + 0x28cc]
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, edi
lea ecx, [esi + 0x28dc]
push 0
push ebp
mov eax, dword [edx]
push 0
mov dword [ecx], eax
push 0
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x28d8]
mov edx, dword [edx + 0xc]
push eax
mov dword [ecx + 0xc], edx
mov ecx, dword [esi + 0x28d4]
push ecx
push 0
push 0
push 0x80000000
push 0x4751fc
push 0x4751fc
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
test ebx, ebx
mov dword [esi + 0x28c4], eax
je 0x401d3b
mov dword [esi + 0x28c4], ebx
mov eax, dword [esi + 0x28c4]
test eax, eax
jne 0x401d52
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret 0xc
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esi + 0x28c4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x28c4]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push eax
call ebp
mov ecx, esi
call fcn.00405640
test eax, eax
jge 0x401d90
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret 0xc
mov ecx, dword [esi + 0x28c4]
push edi
push ecx
call ebp
mov dword [esi + 0x28c8], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0xc