Function at 0x444fc9
Capabilities:
Accept command line arguments
Get common file path
Print debug messages
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb5c
mov eax, dword [0x472550]
xor eax, esp
mov dword [esp + 0xb58], eax
push ebx
push esi
push edi
lea eax, [esp + 0x158]
push eax
xor ebx, ebx
push 0x104
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], eax
xor esi, esi
xor eax, eax
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], esi
mov word [esp + 0x44], ax
call fcn.0040293a
lea ecx, [esp + 0x3c]
call fcn.00402917
mov eax, dword [esp + 0x3c]
push 8
pop edi
cmp dword [eax + 0x14], edi
jb 0x44503d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push 1
lea ecx, [esp + 0x48]
call fcn.00401629
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.00444fbe
mov dword [esp + 0x20], 0x4557a8
mov eax, dword [eax]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x13c]
mov dword [esp + 0x34], eax
call fcn.004017ea
lea ecx, [esp + 0x20]
call fcn.00402828
call fcn.0040299e
mov ecx, eax
call fcn.004442c4
test eax, eax
je 0x4456fe
and dword [esp + 0x6c], ebx
lea eax, [esp + 0x5c]
push 7
mov dword [esp + 0x5c], eax
xor eax, eax
pop ecx
or esi, 0xffffffff
cmp dword [esp + 0x1c], 1
mov dword [esp + 0x70], ecx
mov word [esp + 0x5c], ax
jle 0x445140
and dword [esp + 0x30], eax
push 3
pop ebx
mov dword [esp + 0x34], ecx
push 0x4552bc
lea ecx, [esp + 0x24]
mov word [esp + 0x24], ax
call fcn.004013cc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push dword [eax + 4]
call fcn.00401447
cmp dword [esp + 0x30], esi
mov edx, esi
cmovb edx, dword [esp + 0x30]
cmp dword [esp + 0x34], edi
push edx
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
push ecx
push dword [esp + 0x38]
push ecx
mov ecx, eax
call fcn.0040453d
mov byte [esp + 0x12], 1
test eax, eax
je 0x445145
mov byte [esp + 0x12], 0
test bl, 2
je 0x44515a
push 0
push 1
lea ecx, [esp + 0x44]
and ebx, 0xfffffffd
call fcn.00401629
test bl, 1
je 0x44516f
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.00401629
jmp 0x445171
xor ebx, ebx
cmp byte [esp + 0x12], 0
je 0x445682
push 0x4552bc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0xd8]
push eax
mov dword [esp + 0xd8], ecx
call fcn.00401447
mov ecx, dword [esp + 0x58]
cmp ecx, dword [esp + 0xd4]
je 0x4451c0
push esi
push ebx
push dword [esp + 0xdc]
call fcn.00401348
push ebx
push 1
lea ecx, [esp + 0xe0]
call fcn.00401629
mov eax, dword [esp + 0x58]
cmp dword [eax + 0x14], edi
jb 0x4451da
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov ecx, dword [esp + 0x58]
call fcn.0040409f
mov ecx, dword [esp + 0x58]
cmp dword [ecx + 0x14], edi
jb 0x4451f5
mov ecx, dword [ecx]
call fcn.004448af
test al, al
jne 0x445206
xor ebx, ebx
inc ebx
jmp 0x4456f0
call fcn.0040299e
mov ecx, eax
call fcn.004442c1
mov ebx, eax
mov edx, str.global_app_id
mov ecx, ebx
call fcn.00406e6a
push 0
mov edx, esi
mov ecx, ebx
call fcn.00406b3c
add dword [ebx + 0xc], 0xfffffff0
pop ecx
mov esi, eax
mov edx, str.global_uinstall_mutex_guid
mov ecx, ebx
mov edi, esi
call fcn.00406e6a
push 0xffffffffffffffff
mov edx, ebx
lea ecx, [esp + 0x90]
call fcn.004059fb
add dword [ebx + 0xc], 0xfffffff0
pop ecx
mov edx, str.global_install_mutex_guid
mov ecx, ebx
call fcn.00406e6a
push 0xffffffffffffffff
mov edx, ebx
lea ecx, [esp + 0xc0]
call fcn.004059fb
add dword [ebx + 0xc], 0xfffffff0
cmp dword [esp + 0xa0], 0
pop ecx
jne 0x445293
push str.GlobalFE1A11F2_E01F_4421_90FD_2409A1BA5EFD
lea ecx, [esp + 0x90]
call fcn.004013cc
jmp 0x445295
xor esi, esi
and dword [esp + 0x14], 0
cmp dword [esp + 0xa0], 8
push esi
lea eax, [esp + 0x90]
cmovae eax, dword [esp + 0x90]
push str.SMG_Uninstaller
push eax
lea ecx, [esp + 0x20]
call fcn.0040631b
test eax, eax
jne 0x4452ce
xor edi, edi
mov ebx, edi
jmp 0x445662
cmp dword [esp + 0xcc], 0
jne 0x4452eb
push str.GlobalA043B702_166A_4FB8_9733_E2BC4713F36F
lea ecx, [esp + 0xc0]
call fcn.004013cc
jmp 0x4452ed
xor edi, edi
and dword [esp + 0x14], 0
cmp dword [esp + 0xd0], 8
push edi
lea eax, [esp + 0xc0]
cmovae eax, dword [esp + 0xc0]
push str.SMG_Installer
push eax
lea ecx, [esp + 0x20]
call fcn.0040631b
test eax, eax
jne 0x445363
push 0x455418
mov edx, str.global_uninst_wait_for_inst_exit
lea ecx, [esp + 0x24]
call fcn.004447a5
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
mov dword [esp], 0x10000
xor ebx, ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.00401629
xor edi, edi
jmp 0x445662
mov edx, dword [esp + 0x58]
mov ecx, ebx
call fcn.004056c9
mov edx, str.global_install_path
mov ecx, ebx
call fcn.0040716e
mov esi, str.hwang
lea edi, [esp + 0x360]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7f2
xor edi, edi
lea eax, [esp + 0x372]
push edi
push eax
call fcn.0041ff10
mov eax, dword [esp + 0x64]
add esp, 0xc
push 8
pop esi
cmp dword [eax + 0x14], esi
jb 0x4453b1
mov eax, dword [eax]
push eax
lea eax, [esp + 0x370]
push eax
call fcn.00420286
pop ecx
pop ecx
lea eax, [esp + 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, str.DTLSE_BeforeInit
mov ecx, ebx
call fcn.00406e6a
or edx, 0xffffffff
mov ecx, ebx
call fcn.00406a0e
cmp eax, 6
jne 0x4453f9
call fcn.0040299e
push edi
push edi
push ebx
call fcn.00443add
jmp 0x4453fd
add dword [ebx + 0xc], 0xfffffff0
mov edx, str.global_product_name
mov ecx, ebx
call fcn.00406e6a
push 0xffffffffffffffff
mov edx, ebx
lea ecx, [esp + 0xa8]
call fcn.004059fb
add dword [ebx + 0xc], 0xfffffff0
lea edx, [esp + 0xa8]
lea ecx, [esp + 0x40]
mov dword [esp], 0x4554a4
call fcn.00406515
pop ecx
cmp dword [eax + 0x14], esi
jb 0x44543c
mov eax, dword [eax]
push eax
mov edx, str.global_uninst_wnd_title
lea ecx, [esp + 0x78]
call fcn.004447a5
pop ecx
push edi
push 1
lea ecx, [esp + 0x44]
call fcn.00401629
mov edx, str.global_uninstall_no_prompt
mov ecx, ebx
call fcn.00406e6a
or edx, 0xffffffff
mov ecx, ebx
call fcn.00406b8e
test eax, eax
setne byte [esp + 0x12]
add dword [ebx + 0xc], 0xfffffff0
mov edx, str.global_uninstall_no_start_prompt
mov ecx, ebx
call fcn.00406e6a
or edx, 0xffffffff
mov ecx, ebx
call fcn.00406b8e
test eax, eax
setne byte [esp + 0x13]
add dword [ebx + 0xc], 0xfffffff0
cmp dword [esp + 0xb8], esi
lea eax, [esp + 0xa4]
cmovae eax, dword [esp + 0xa4]
push eax
lea eax, [esp + 0x124]
push 0x455504
push eax
call fcn.0040122a
add esp, 0xc
cmp dword [esp + 0x134], esi
lea eax, [esp + 0x120]
cmovae eax, dword [esp + 0x120]
push eax
mov edx, str.global_uninst_confirm_tips
lea ecx, [esp + 0x10c]
call fcn.004447a5
cmp byte [esp + 0x16], 0
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
pop ecx
jne 0x445541
cmp byte [esp + 0x13], 0
jne 0x445541
cmp dword [esp + 0x88], 8
lea ecx, [esp + 0x74]
cmovae ecx, dword [esp + 0x74]
cmp dword [esp + 0x11c], 8
push 0x10021
lea eax, [esp + 0x10c]
cmovae eax, dword [esp + 0x10c]
push ecx
push eax
push edi
call esi
cmp eax, 2
jne 0x445541
mov ebx, edi
jmp 0x445629
mov edx, str.DTLSE_OnUninstall
mov ecx, ebx
call fcn.00406e6a
or edx, 0xffffffff
mov ecx, ebx
call fcn.00406a0e
cmp eax, 6
jne 0x44556b
call fcn.0040299e
push edi
push edi
push ebx
call fcn.00443add
jmp 0x44556f
add dword [ebx + 0xc], 0xfffffff0
push 0x455564
lea edx, [esp + 0xa8]
lea ecx, [esp + 0x40]
call fcn.00406515
cmp dword [eax + 0x14], 8
pop ecx
jb 0x44558d
mov eax, dword [eax]
push eax
mov edx, str.global_uninstall_tips
lea ecx, [esp + 0xf4]
call fcn.004447a5
pop ecx
push edi
push 1
lea ecx, [esp + 0x44]
call fcn.00401629
cmp byte [esp + 0x12], 0
jne 0x4455e5
cmp dword [esp + 0x88], 8
lea ecx, [esp + 0x74]
cmovae ecx, dword [esp + 0x74]
cmp dword [esp + 0x104], 8
push 0x10040
lea eax, [esp + 0xf4]
cmovae eax, dword [esp + 0xf4]
push ecx
push eax
push edi
call esi
mov edx, str.DTLSE_AfterUnintall
mov ecx, ebx
call fcn.00406e6a
or edx, 0xffffffff
mov ecx, ebx
call fcn.00406a0e
cmp eax, 6
jne 0x44560f
call fcn.0040299e
push edi
push edi
push ebx
call fcn.00443add
jmp 0x445613
add dword [ebx + 0xc], 0xfffffff0
call fcn.00444ace
push edi
push 1
lea ecx, [esp + 0xf8]
mov ebx, edi
call fcn.00401629
push edi
push 1
lea ecx, [esp + 0x110]
call fcn.00401629
push edi
push 1
lea ecx, [esp + 0x128]
call fcn.00401629
push edi
push 1
lea ecx, [esp + 0x7c]
call fcn.00401629
push edi
push 1
lea ecx, [esp + 0xac]
call fcn.00401629
push edi
push 1
lea ecx, [esp + 0xc4]
call fcn.00401629
push edi
push 1
lea ecx, [esp + 0x94]
call fcn.00401629
jmp 0x4456f2
mov eax, dword [esp + 0x58]
cmp dword [eax + 0x14], edi
jb 0x44568f
mov ecx, dword [eax]
jmp 0x445693
mov ecx, dword [esp + 0x58]
call fcn.004448af
test al, al
je 0x4451fe
call fcn.0040299e
mov ecx, eax
call fcn.004442c1
mov esi, eax
mov edx, str.DTLSE_StartHook
mov ecx, esi
call fcn.00406e6a
or edx, 0xffffffff
mov ecx, esi
call fcn.00406a0e
cmp eax, 6
jne 0x4456d8
call fcn.0040299e
push ebx
push ebx
push esi
call fcn.00443add
jmp 0x4456dc
add dword [esi + 0xc], 0xfffffff0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
call fcn.00444b24
xor ebx, ebx
test al, al
sete bl
xor edi, edi
push edi
push 1
lea ecx, [esp + 0x64]
call fcn.00401629
lea ecx, [esp + 0x138]
call fcn.0040182b
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0xb64]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041effa
mov esp, ebp
pop ebp
ret 0x10