Function at 0x406058
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
call fcn.004062bf
mov byte [0x45c72c], al
call fcn.00440f90
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, str.comctl32.dll
call fcn.004062f5
cmp eax, 0x40047
mov dword [0x45c704], eax
sbb al, al
mov ecx, 0xc8
inc al
mov edx, ecx
mov byte [0x45a21c], al
call fcn.0042f863
neg al
sbb al, al
xor ebx, ebx
inc al
push ebx
mov byte [0x45c72f], al
call dword [sym.imp.ole32.dll_OleInitialize]
push 3
lea ecx, [ebp - 0x24]
pop esi
mov dword [ebp - 0x24], ebx
push esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004033c8
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004033c8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004030ba
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041fc54
push dword [ebp - 0x3c]
call fcn.00428aef
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00407041
lea ecx, [ebp - 0x24]
call fcn.00407006
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004033c8
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004033c8
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041fc54
lea ecx, [ebp - 0x18]
call fcn.00407041
lea ecx, [ebp - 0x18]
call fcn.00407006
lea ecx, [ebp - 0xc]
call fcn.00407041
lea ecx, [ebp - 0xc]
call fcn.00407006
lea eax, [ebp - 0x3c]
push 2
push eax
lea ecx, [ebp - 0xc]
call fcn.0040325a
mov ecx, dword [eax]
mov edx, 0x45a234
call fcn.00428847
push dword [ebp - 0x3c]
mov esi, eax
call fcn.00428aef
cmp esi, ebx
pop ecx
jne 0x4061ae
lea eax, [ebp - 0x3c]
push 2
push eax
lea ecx, [ebp - 0xc]
call fcn.00405288
push eax
mov ecx, 0x45c708
call fcn.0040315e
push dword [ebp - 0x3c]
call fcn.00428aef
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x4061c1
lea eax, [ebp - 0x18]
mov ecx, 0x45c718
push eax
call fcn.0040315e
call fcn.0040635b
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00405e36
test eax, eax
je 0x406294
cmp byte [0x45c72c], bl
push edi
push 0xd1
push dword [ebp + 8]
je 0x406237
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, eax
push ebx
push ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call esi
test eax, eax
je 0x406284
lea eax, [ebp - 0x58]
push eax
push edi
push dword [0x45c724]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40622e
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0x58]
push ebx
push eax
jmp 0x4061ff
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, eax
push ebx
push ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call esi
test eax, eax
je 0x406284
lea eax, [ebp - 0x58]
push eax
push edi
push dword [0x45c724]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40627b
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [ebp - 0x58]
push ebx
push eax
jmp 0x40624c
mov dword [0x45c724], ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ebx, dword [ebp - 0x50]
pop edi
push dword [ebp - 0xc]
call fcn.00428aef
push dword [ebp - 0x18]
call fcn.00428aef
push dword [ebp - 0x30]
call fcn.00428aef
push dword [ebp - 0x24]
call fcn.00428aef
add esp, 0x10
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10