Function at 0x409c32
Capabilities:
Check if file exists
Get common file path
Get program files directory
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x465910
mov eax, dword fs:[0]
push eax
sub esp, 0xe6c
mov eax, dword [0x487590]
xor eax, esp
mov dword [esp + 0xe68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487590]
xor eax, esp
push eax
lea eax, [esp + 0xe80]
mov dword fs:[0], eax
mov esi, ecx
push ecx
push 0x47b5d0
push ecx
lea ecx, [esp + 0x38]
call fcn.0040b03b
mov ebp, 0x489028
xor ebx, ebx
push 0x48a0a8
mov ecx, ebp
mov dword [esp + 0xe8c], ebx
call fcn.00437c60
push eax
lea ecx, [esp + 0x20]
call fcn.004029e6
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0xe8c], 1
mov ecx, dword [esi + 0x50]
push eax
call fcn.00416f70
mov byte [esp + 0xe88], 3
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x409ce9
push dword [esi]
call fcn.00409f8e
test al, al
jne 0x409ced
add esi, 4
cmp esi, edi
jne 0x409cdb
push ebx
push ebp
push 0x4889f8
push ebx
push dword [esi]
call fcn.0043a37b
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x409f4c
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0041a7ad
mov byte [esp + 0xe88], 4
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x409e35
push 0x47a8b4
lea ecx, [esp + 0x18]
call fcn.004045e9
test eax, eax
je 0x409e35
push dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x409d8c
mov edi, 0x104
push edi
lea ecx, [esp + 0x18]
call fcn.00401662
mov ecx, dword [esp + 0x14]
mov edx, eax
cmp dword [ecx - 8], edi
jge 0x409d75
push 0x80070057
call fcn.00401697
mov dword [ecx - 0xc], edi
mov eax, dword [esp + 0x14]
xor ecx, ecx
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x409dd9
push 0x206
push eax
mov word [esp + 0x47c], ax
lea eax, [esp + 0x47e]
push eax
call fcn.00438850
add esp, 0xc
lea eax, [esp + 0x474]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x474]
push eax
lea ecx, [esp + 0x18]
call fcn.00401761
mov esi, str.hwang
lea edi, [esp + 0x67c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7f2
lea eax, [esp + 0x68e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00438850
add esp, 0xc
lea eax, [esp + 0x688]
push dword [esp + 0x14]
push 0x47a728
push eax
call fcn.00437dbf
add esp, 0xc
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov byte [esp + 0x54], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x30]
call fcn.0040adcb
cmp eax, 1
jne 0x409f40
call fcn.00402f0e
mov ecx, eax
call fcn.0040c2b8
mov esi, eax
mov edx, 0x47b5e0
mov ecx, esi
call fcn.0041d7ab
push 0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d44a
pop ecx
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.0040384f
push 0xfffffffffffffffe
pop edx
mov ecx, esi
mov byte [esp + 0xe88], 5
call fcn.0041d09c
lea eax, [esp + 0x25e]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040178b
mov byte [esp + 0xe88], 6
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0040a27d
test al, al
jne 0x409f1c
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x409d6b
cmp ecx, edx
jg 0x409d6b
cmp word [eax + ecx*2], 0x5c
je 0x409f0b
test ecx, ecx
js 0x409d6b
cmp ecx, edx
jg 0x409d6b
cmp word [eax + ecx*2], 0x2f
je 0x409f0b
mov esi, 0x47b6d8
push esi
call fcn.00437bfc
pop ecx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0040af04
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push dword [eax - 0xc]
push eax
call fcn.0040af04
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.0041a5fa
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401551
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401551
lea ecx, [esp + 0x20]
call fcn.00402dd6
push dword [esp + 0x468]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [esp + 0xe80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe68]
xor ecx, esp
call fcn.00437bed
add esp, 0xe78
ret 0x10