Function at 0x4021ca
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xdc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call eax
lea edx, [ebp - 0xa0]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.SHELL32.DLL_CommandLineToArgvW]
call eax
sub esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
jmp 0x4023aa
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], 0x40623e
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call eax
sub esp, 8
test eax, eax
jne 0x402249
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str._wmin
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call eax
sub esp, 8
test eax, eax
jne 0x40227a
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str._noamazon
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call eax
sub esp, 8
test eax, eax
jne 0x4022ae
mov dword [0x40500c], 0
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str._noyoutube
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call eax
sub esp, 8
test eax, eax
jne 0x4022e2
mov dword [0x405008], 0
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str._slt
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call eax
sub esp, 8
test eax, eax
jne 0x402313
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str._slb
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call eax
sub esp, 8
test eax, eax
jne 0x402344
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str._srt
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call eax
sub esp, 8
test eax, eax
jne 0x402375
mov dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x28]
lea edx, [eax*4]
mov eax, dword [ebp - 0x2c]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], str._srb
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcmpW]
call eax
sub esp, 8
test eax, eax
jne 0x4023a6
mov dword [ebp - 0x24], 3
add dword [ebp - 0x28], 1
mov eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x28], eax
jl 0x402218
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 0x401fb0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadIconW]
call eax
sub esp, 8
mov dword [ebp - 0x48], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadIconW]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadCursorW]
call eax
sub esp, 8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x3c], 0
mov eax, dword [0x405004]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x60], 0x30
lea eax, [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassExW]
call eax
sub esp, 4
test ax, ax
jne 0x40246b
mov eax, 0
jmp 0x402e82
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x9c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x30
mov eax, dword [sym.imp.USER32.dll_SystemParametersInfoW]
call eax
sub esp, 0x10
test eax, eax
jne 0x4024ae
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x84], 0x258
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x80], 0x5a
mov dword [ebp - 0x30], 0xca0000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_AdjustWindowRectEx]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x8c]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x88]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x4025aa
cmp eax, 1
jg 0x402554
test eax, eax
je 0x40256b
jmp 0x402688
cmp eax, 2
je 0x4025f3
cmp eax, 3
je 0x402639
jmp 0x402688
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x9c]
add eax, edx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x98]
add eax, edx
mov dword [ebp - 0x80], eax
jmp 0x402688
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x9c]
add eax, edx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x80]
sub ecx, edx
mov edx, ecx
add eax, edx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x80], eax
jmp 0x402688
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
sub ecx, edx
mov edx, ecx
add eax, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x98]
add eax, edx
mov dword [ebp - 0x80], eax
jmp 0x402688
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
sub ecx, edx
mov edx, ecx
add eax, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x80]
sub ecx, edx
mov edx, ecx
add eax, edx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x80], eax
nop
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x88]
mov edi, edx
sub edi, eax
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x8c]
mov esi, edx
sub esi, eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x8c]
mov eax, dword [0x405004]
mov dword [esp + 0x2c], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.Amazon_Shrink_URL__GUI_
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x407020], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x18], 0x50
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Clipboard
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x407024], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x18], 0x190
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0x64
mov dword [esp + 0xc], 0x50004080
mov dword [esp + 8], 0x4060dc
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x40702c], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x18], 0x46
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0x1fe
mov dword [esp + 0xc], 0x50000002
mov dword [esp + 8], 0x4060dc
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x407034], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x18], 0x50
mov dword [esp + 0x14], 0x1e
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Shrink
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x407028], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x18], 0x190
mov dword [esp + 0x14], 0x1e
mov dword [esp + 0x10], 0x64
mov dword [esp + 0xc], 0x50004080
mov dword [esp + 8], 0x4060dc
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x407030], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x18], 0x46
mov dword [esp + 0x14], 0x1e
mov dword [esp + 0x10], 0x1fe
mov dword [esp + 0xc], 0x50000002
mov dword [esp + 8], 0x4060dc
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x407038], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0x3e9
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x1c
mov dword [esp + 0x18], 0x7c
mov dword [esp + 0x14], 0x34
mov dword [esp + 0x10], 0x1cc
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.COPY
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x40703c], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0x3ea
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x12
mov dword [esp + 0x18], 0x6a
mov dword [esp + 0x14], 0x3a
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50000003
mov dword [esp + 8], str.Quick_Shrink
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x407040], eax
mov eax, dword [0x407020]
mov dword [esp + 0x2c], 0
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x1c
mov dword [esp + 0x18], 0x14a
mov dword [esp + 0x14], 0x34
mov dword [esp + 0x10], 0x78
mov dword [esp + 0xc], 0x5000000e
mov dword [esp + 8], 0x4060dc
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x407044], eax
mov dword [esp + 0x34], str.Meiryo_UI
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 5
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], pe_nt_image_headers32
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x10
mov eax, dword [sym.imp.GDI32.dll_CreateFontW]
call eax
sub esp, 0x38
mov dword [0x407048], eax
mov eax, dword [0x407048]
mov edx, eax
mov eax, dword [0x407024]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov eax, dword [0x407048]
mov edx, eax
mov eax, dword [0x40702c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov eax, dword [0x407048]
mov edx, eax
mov eax, dword [0x407034]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov eax, dword [0x407048]
mov edx, eax
mov eax, dword [0x407028]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov eax, dword [0x407048]
mov edx, eax
mov eax, dword [0x407030]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov eax, dword [0x407048]
mov edx, eax
mov eax, dword [0x407038]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov eax, dword [0x407048]
mov edx, eax
mov eax, dword [0x40703c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov eax, dword [0x407048]
mov edx, eax
mov eax, dword [0x407040]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x65
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_LoadImageW]
call eax
sub esp, 0x18
mov dword [0x40704c], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x66
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_LoadImageW]
call eax
sub esp, 0x18
mov dword [0x407050], eax
mov eax, dword [0x40704c]
mov edx, eax
mov eax, dword [0x407044]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x172
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
cmp dword [ebp - 0x1c], 0
je 0x402dc7
mov eax, dword [0x407040]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xf1
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
jmp 0x402df1
mov eax, dword [0x407040]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
call fcn.00401c4b
cmp dword [ebp - 0x20], 0
je 0x402e18
mov eax, dword [0x407020]
mov dword [esp + 4], 6
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
jmp 0x402e53
mov eax, dword [0x407020]
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
jmp 0x402e53
lea eax, [ebp - 0x7c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x7c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageW]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x7c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageW]
call eax
sub esp, 0x10
test eax, eax
jne 0x402e33
mov eax, dword [ebp - 0x74]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10