Function at 0x405ef6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
call fcn.0040615d
mov byte [0x45d8b4], al
call fcn.004411f0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, str.comctl32.dll
call fcn.00406193
cmp eax, 0x40047
mov dword [0x45d88c], eax
sbb al, al
mov ecx, 0xc8
inc al
mov edx, ecx
mov byte [0x45b2c0], al
call fcn.0042fb0b
neg al
sbb al, al
xor ebx, ebx
inc al
push ebx
mov byte [0x45d8b7], 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.00403396
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00403396
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403091
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041f806
push dword [ebp - 0x3c]
call fcn.004284d8
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00406f3f
lea ecx, [ebp - 0x24]
call fcn.00406f04
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00403396
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00403396
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041f806
lea ecx, [ebp - 0x18]
call fcn.00406f3f
lea ecx, [ebp - 0x18]
call fcn.00406f04
lea ecx, [ebp - 0xc]
call fcn.00406f3f
lea ecx, [ebp - 0xc]
call fcn.00406f04
lea eax, [ebp - 0x3c]
push 2
push eax
lea ecx, [ebp - 0xc]
call fcn.00403228
mov ecx, dword [eax]
mov edx, 0x45b2d8
call fcn.0042828a
push dword [ebp - 0x3c]
mov esi, eax
call fcn.004284d8
cmp esi, ebx
pop ecx
jne 0x40604c
lea eax, [ebp - 0x3c]
push 2
push eax
lea ecx, [ebp - 0xc]
call fcn.00405246
push eax
mov ecx, 0x45d890
call fcn.0040312c
push dword [ebp - 0x3c]
call fcn.004284d8
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x40605f
lea eax, [ebp - 0x18]
mov ecx, 0x45d8a0
push eax
call fcn.0040312c
call fcn.004061f9
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00405cd4
test eax, eax
je 0x406132
cmp byte [0x45d8b4], bl
push edi
push 0xd1
push dword [ebp + 8]
je 0x4060d5
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 0x406122
lea eax, [ebp - 0x58]
push eax
push edi
push dword [0x45d8ac]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4060cc
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 0x40609d
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 0x406122
lea eax, [ebp - 0x58]
push eax
push edi
push dword [0x45d8ac]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x406119
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 0x4060ea
mov dword [0x45d8ac], ebx
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ebx, dword [ebp - 0x50]
pop edi
push dword [ebp - 0xc]
call fcn.004284d8
push dword [ebp - 0x18]
call fcn.004284d8
push dword [ebp - 0x30]
call fcn.004284d8
push dword [ebp - 0x24]
call fcn.004284d8
add esp, 0x10
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10