Function at 0x4050c0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x150
mov byte [0x6c5f20], 0
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [esp + 0x160]
mov dword [0x6c6050], esi
call fcn.00401580
test eax, eax
jne 0x40511b
push 0x10
push 0x15
call fcn.004013a0
add esp, 4
push eax
push 0x14
call fcn.004013a0
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4053b1
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call fcn.004022e0
test eax, eax
jne 0x405136
xor eax, eax
jmp 0x4053b1
cmp dword [0x411534], 0
jne 0x40514d
call fcn.00401e10
test eax, eax
jne 0x40514d
call fcn.004017d0
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x104
xor ebx, ebx
push 0x6c6060
mov dword [0x6c6054], eax
mov eax, dword [0x6c6050]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x58]
push ebx
lea ecx, [esp + 0x40]
push ebx
mov byte [esp + 0x60], bl
push eax
push ecx
push 0x6c6060
call fcn.00409610
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x50]
add esp, 0x14
push ecx
push edx
push str._s_s
push 0x6c6060
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x68]
add esp, 0x10
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4051db
mov edi, 0x6c6060
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov byte [ecx + 0x6c605e], bl
push 0x6c6060
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
push 0x64
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x18], 0x404eb0
mov dword [esp + 0x20], 4
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x24], eax
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x28], eax
push 0x13
mov eax, dword [0x6c6054]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], eax
call fcn.004013a0
mov dword [esp + 0x38], eax
add esp, 4
push edi
push 0x10
push 0x10
push 1
push 0x64
push esi
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esp + 0x38], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x40527f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x40527f
xor eax, eax
jmp 0x4053b1
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
push 0x5a
push esi
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, 0xffffffb8
call ebx
lea ecx, [eax*8]
push str.Arial
sub ecx, eax
push 0
push 0
push 0
lea eax, [ecx*2]
push 0
cdq
idiv edi
push 0
push 0
push 0
push 0
push 0x2bc
mov edi, dword [sym.imp.GDI32.dll_CreateFontA]
push 0
push 0
push 0
push eax
call edi
push 0x5a
mov dword [0x6c6048], eax
push esi
call ebx
lea eax, [eax + eax*4]
mov ecx, 0xffffffb8
add eax, eax
push str.Arial
cdq
idiv ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
push eax
call edi
push esi
mov dword [0x6c6164], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
mov ecx, dword [0x6c6050]
push ecx
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x411918
push 0x13
call fcn.004013a0
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
mov dword [0x6c604c], eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [0x6c6050]
mov eax, dword [0x6c604c]
push ecx
push eax
call fcn.00404f50
add esp, 8
mov ecx, dword [0x6c6048]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov ecx, dword [0x6c6164]
push ecx
call esi
mov eax, dword [0x6c6054]
push eax
call esi
mov eax, dword [0x411500]
test eax, eax
je 0x4053a6
push eax
call esi
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x150
ret 0x10