Function at 0x4136e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x527354]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x824]
push esi
push edi
push 0x208
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.0049b6a5
add esp, 8
test eax, eax
je 0x413770
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 8
push eax
mov dword [ebp - 0x828], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x4fa978
push 0
call fcn.0049b978
add esp, 8
mov ecx, 0x52b3bc
push 0
push dword [ebp + 8]
push 0
call fcn.00410e70
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4fa97c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [0x52b2e4]
test al, 1
jne 0x413840
or eax, 1
mov dword [0x52b2e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x4f4130
mov dword [0x52b2d8], 0x4f7768
mov dword [0x52b2dc], eax
mov byte [0x52b2e0], 0
call fcn.00427875
mov eax, dword [0x52b2e4]
add esp, 4
test al, 2
jne 0x41389c
or eax, 2
mov dword [0x52b2e8], 0x4f7780
mov dword [0x52b2e4], eax
xor eax, eax
push 0x4f4160
mov dword [0x52b2ec], 0x52b2d8
mov dword [0x52b2fc], 2
mov dword [0x52b2f4], 0
mov dword [0x52b2f8], 0
mov dword [0x52b300], eax
mov dword [0x52b2f0], 0x52b2e8
call fcn.00427875
add esp, 4
mov eax, dword [0x52b2e8]
mov ecx, 0x52b2e8
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00409fd0
test al, al
jne 0x4138f3
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4138d1
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.004089b0
lea eax, [ebp - 0x828]
mov ecx, 0x52b434
push eax
call fcn.00414800
mov edx, dword [ebp - 0x828]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413922
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call fcn.00410c00
mov ecx, eax
call fcn.0040a330
lea ecx, [ebp - 0x830]
call fcn.004046c0
call fcn.00410c90
mov ecx, eax
call fcn.004246a0
mov eax, dword [0x52b42c]
test al, 1
jne 0x41396e
or eax, 1
mov ecx, 0x52b428
mov dword [0x52b42c], eax
call fcn.0040f7b0
push 0x4f4720
call fcn.00427875
add esp, 4
mov ecx, 0x52b428
call fcn.0040f800
mov ecx, dword [0x52b314]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ecx, ecx
jne 0x4139d4
push 0x5270b0
call esi
cmp dword [0x52b314], 0
jne 0x4139c7
push 0x14
call fcn.004278fc
add esp, 4
test eax, eax
je 0x4139b5
mov ecx, eax
call fcn.00409bf0
jmp 0x4139b7
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x828]
lock or dword [ecx], edx
mov dword [0x52b314], eax
push 0x5270b0
call edi
mov ecx, dword [0x52b314]
call fcn.0040a380
push eax
call fcn.0040efa0
mov ecx, 0x52b3f8
call fcn.00404c30
test eax, eax
jne 0x4139fe
push eax
push 0x4fa998
push eax
call fcn.0040f100
jmp 0x413aee
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004717b0
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.00414160
lea edx, [ebp - 0x61c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
call fcn.00410f90
mov ecx, dword [0x52b310]
test ecx, ecx
jne 0x413a9c
push 0x527094
call esi
cmp dword [0x52b310], 0
jne 0x413a8f
push 4
call fcn.004278fc
add esp, 4
test eax, eax
je 0x413a7d
mov ecx, eax
call fcn.0041e3c0
jmp 0x413a7f
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x828]
lock or dword [ecx], edx
mov dword [0x52b310], eax
push 0x527094
call edi
mov ecx, dword [0x52b310]
push 0
push 0
push 1
push 0
push str.start
call fcn.0041e770
call fcn.00414160
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
je 0x413ae2
push 0
push 0
push 1
push 0
push str.unist_init_fail
call fcn.00410d20
mov ecx, eax
call fcn.0041e770
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x413aee
push dword [ebp + 0x14]
push ebx
call fcn.00412660
add esp, 8
mov ecx, 0x52b3f8
call fcn.00404e20
mov eax, dword [0x52b42c]
test al, 1
jne 0x413b20
or eax, 1
mov ecx, 0x52b428
mov dword [0x52b42c], eax
call fcn.0040f7b0
push 0x4f4720
call fcn.00427875
add esp, 4
mov ecx, 0x52b428
call fcn.0040f810
call fcn.00410c90
mov ecx, eax
call fcn.00424810
mov ebx, dword [0x52b334]
add ebx, 0x10
push ebx
call esi
mov esi, dword [0x52b3f4]
test esi, esi
je 0x413b94
cmp dword [esi + 4], 0
jle 0x413b62
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x52b3f4]
test esi, esi
je 0x413b94
mov eax, dword [esi]
test eax, eax
je 0x413b7b
push eax
call fcn.0049a668
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0042747a
add esp, 8
push ebx
mov dword [0x52b3f4], 0
call edi
mov esi, dword [0x52b3f0]
test esi, esi
je 0x413be9
mov eax, dword [esi]
test eax, eax
je 0x413bc0
push eax
call fcn.0049a668
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x413bd7
push eax
call fcn.0049a668
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.0042747a
add esp, 8
mov esi, dword [0x52b3e8]
test esi, esi
je 0x413c1b
cmp dword [esi], 0
je 0x413c1b
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x413c05
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x413bf8
mov esi, dword [0x5270d4]
mov ecx, dword [0x5270d8]
cmp esi, ecx
jae 0x413c4a
nop dword [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x413c43
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x5270d8]
add esi, 4
cmp esi, ecx
jb 0x413c30
mov ecx, 0x52b3bc
call fcn.00412b20
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x830]
call fcn.00404700
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042788a
mov esp, ebp
pop ebp
ret 0x10