Function at 0x4033b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
inc esi
mov word [0x7e2016], 0x98a0
lea ebx, [0x7e20e7]
sub dword [ebx + 0x24], esi
cmp eax, 0xffffffff
je 0x4033e5
mov dword [0x7e20b6], esi
mov dword [esp - 8], edi
mov dword [0x7e2031], esi
lea ecx, [0x7e2057]
mov dword [ecx], ebx
mov dword [0x7e2041], esi
mov dword [0x7e20c1], edx
sub dword [0x7e20db], ebx
mov dword [ebp - 4], 0x1a
mov eax, dword [0x7f3684]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
je 0x40343e
mov dword [0x7e2075], edi
mov byte [0x7e2063], 7
mov dword [0x7e2088], edx
xchg dword [0x7e20bc], edi
mov dword [0x7e2079], ebx
mov dword [0x7e20d9], ecx
mov dword [esp - 0x18], eax
mov ecx, ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
jne 0x40346d
xchg dword [0x7e2054], edx
mov dword [0x7e20fa], 0x1786b
sub dword [0x7e2109], ebx
mov dword [0x7e2065], 0x17920
mov word [0x7e2014], 0x4b79
mov dword [0x7e2026], eax
mov word [0x7e2072], 0x2163
mov byte [0x7e2012], 0x75
lea ecx, [0x7e2028]
mov dword [ecx], 0xcb
cmp byte [0x7e205c], 0x9e
je 0x4034c3
mov ebx, edx
mov dword [0x7e2092], 0x11d2e
mov dword [0x7e2102], 0x12994
jmp 0x4034d9
mov dword [0x7e2094], 0x10760
sub dword [0x7e2081], edi
add dword [0x7e20fa], esi
cmp ebx, 0xffffffff
jge 0x4034ec
mov dword [0x7e20ea], esi
mov dword [0x7e2084], ecx
jmp 0x4034f2
xchg dword [0x7e20e8], edx
mov dword [0x7e207c], eax
mov dword [ebp - 0x10], 3
mov eax, dword [0x7f3684]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x40353a
add dword [0x7e20f7], edi
mov dword [0x7e20ad], esi
xchg dword [0x7e2048], edi
mov dword [0x7e2070], 0x17874
mov dword [0x7e2021], esi
mov edi, dword [0x7e2010]
mov ebx, edx
inc edx
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
je 0x40355a
mov eax, ecx
inc edi
mov byte [0x7e20d8], 0x48
cmp dword [ebp - 0x20], 0
jge 0x403572
mov dword [0x7e20b8], esi
mov dword [0x7e20ce], edi
and dword [0x7e206e], ecx
mov dword [0x7e20e9], edx
mov word [0x7e2056], 0xe3ca
mov dword [0x7e20d3], eax
mov dword [esp - 0xc], edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
je 0x4035cd
mov byte [0x7e2079], 0x61
sub edi, edx
cmp dword [0x7e20cd], ebx
je 0x4035c1
xchg dword [0x7e2035], edx
mov dword [0x7e20d6], edi
mov dword [0x7e20a9], edx
sub dword [0x7e20af], esi
mov dword [0x7e2060], edi
mov dword [0x7e206a], eax
test ecx, ecx
je 0x4035d9
mov dword [0x7e206e], eax
jmp 0x4035f0
mov dword [0x7e20da], ebx
mov esi, dword [esp + 0x18]
mov dword [0x7e20d5], 0x1676e
add edx, 0x67
mov dword [esp - 0x20], edi
cmp ebx, 3
jge 0x403614
dec byte [0x7e2103]
mov dword [0x7e2097], 0x169e0
lea ebx, [0x7e2098]
mov dword [ebx + 0xc], eax
jmp 0x403631
lea esi, [0x7e20fc]
sub dword [esi + 4], edx
add eax, 0x87
mov word [0x7e204a], 0x9434
mov dword [0x7e20b2], edx
xchg dword [0x7e205d], esi
mov dword [0x7e208b], 0x175ed
mov dword [ebp - 0x20], 0x15410
mov dword [ebp - 0x24], 0x1e552
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_AreAllAccessesGranted
test eax, eax
je 0x403685
lea ecx, [0x7e20c5]
add dword [ecx], 0x66
lea eax, [0x7e20d4]
sub dword [eax], 0x8a
xchg dword [0x7e203f], ebx
mov dword [0x7e2051], 0x134a3
mov ebx, 0x44
mov dword [0x7e2013], 0x11422
xchg dword [0x7e20d1], eax
lea ecx, [0x7e204d]
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0x28], 0x1f986
mov byte [ebp - 0x29], 0xfc
mov al, byte [ebp - 0x29]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_IsDBCSLeadByteEx
mov dword [ebp - 0x30], 0x10bf3
mov dword [ebp - 0x34], 0x14c8b
mov eax, 0x403cac
mov dword [ebp - 0x38], eax
mov eax, 0x403cc8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
jne 0x40370d
mov dword [0x7e207b], eax
mov word [0x7e20fd], 0xeb0f
mov dword [0x7e2086], edx
mov dword [0x7e2082], eax
call fcn.00402918
mov ebx, 0x44
mov dword [0x7e2013], 0x11422
xchg dword [0x7e20d1], eax
lea ecx, [0x7e204d]
mov dword [ecx + 0x1c], eax
mov ebx, dword [0x7e20e3]
mov dword [0x7e2012], 0x1749a
mov dword [0x7e2082], ebx
cmp eax, 0xffffffff
jle 0x40375e
mov dword [esp - 0x1c], edi
mov ecx, dword [esp + 0x28]
add esi, 0x2b
mov dword [0x7e2099], eax
jmp 0x403764
mov dword [0x7e208e], esi
add edi, dword [0x7e2100]
mov dword [ebp - 0x40], 0x38
mov eax, dword [0x7f3684]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
je 0x4037a0
mov dword [0x7e20fc], eax
mov dword [0x7e2042], 0x11c20
mov dword [0x7e2053], eax
call fcn.00402198
mov dword [0x7e20eb], ebx
mov dword [0x7e2065], eax
test bl, bl
jne 0x4037c8
mov byte [0x7e2071], 0x55
add ecx, 0xbc
mov dword [0x7e208e], edx
mov dword [esp - 0x18], edi
mov byte [0x7e2054], 0xf2
mov dword [0x7e207c], eax
mov dword [0x7e206f], 0x103d2
mov dword [0x7e20c7], edx
mov dword [ebp - 0x48], 0x29
mov eax, dword [0x7f3684]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x40381c
add dword [0x7e20eb], esi
inc ebx
mov dword [0x7e2101], esi
mov dword [0x7e20ed], ebx
call fcn.004040f0
mov dword [0x7e20d9], ecx
mov dword [esp - 0x18], eax
mov ecx, ebx
push ebx
push 0x7e2040
call fcn.00402afc
mov byte [ebp - 0xa6], 0
mov eax, 0xee
mov byte [0x7e210a], 0x55
mov dword [0x7e2072], edi
cmp byte [esp + 0x10], ch
jle 0x403864
mov eax, 0x1c1
mov dword [0x7e2079], ecx
jmp 0x40388a
mov dword [0x7e201c], 0x14cd7
mov dword [0x7e20e6], eax
mov dword [0x7e204f], edi
mov dword [0x7e20fd], ebx
mov dword [0x7e2050], 0x1433e
mov ebx, 0xd0
mov dword [ebp - 0x50], 0x22
mov eax, dword [0x7f3684]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
jne 0x4038c8
mov byte [0x7e202a], 0xe5
mov dword [0x7e2053], edi
add dword [0x7e20a0], ebx
and dword [0x7e206b], eax
inc byte [ebp - 0xa6]
cmp byte [ebp - 0xa6], 3
jne 0x40383f
mov dword [0x7e202d], ecx
mov dword [0x7e20cd], edx
xchg dword [0x7e2094], esi
mov dword [0x7e205b], edi
mov dword [0x7e2062], eax
mov dword [ebp - 0x58], 0x1cfc4
mov byte [ebp - 0x59], 0xf5
mov al, byte [ebp - 0x59]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_IsDBCSLeadByteEx
test eax, eax
jne 0x40392d
inc byte [0x7e20ba]
lea ecx, [0x7e203c]
mov dword [ecx], 0x96
mov dword [0x7e2097], esi
cmp dword [ebp - 0x20], 0
jge 0x403945
mov dword [0x7e20b8], esi
mov dword [0x7e20ce], edi
and dword [0x7e206e], ecx
mov dword [0x7e20e9], edx
mov word [0x7e2056], 0xe3ca
mov dword [0x7e20d3], eax
mov dword [esp - 0xc], edx
mov byte [ebp - 0xa6], 0
mov dword [ebp - 0x60], 0x13104
mov dword [ebp - 0x64], 0x18d43
mov eax, 0x403ce0
mov dword [ebp - 0x68], eax
mov eax, 0x403d0c
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.user32.dll_FindWindowExA
inc byte [ebp - 0xa6]
cmp byte [ebp - 0xa6], 3
jne 0x403965
mov dword [0x7e20c2], eax
mov dword [0x7e20c8], 0x115ae
mov byte [0x7e20f7], 0x79
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
je 0x4039ef
mov dword [0x7e20c3], ecx
mov byte [0x7e2082], 0x41
cmp eax, 0xffffffff
jle 0x4039e5
mov dword [0x7e2072], ecx
jmp 0x4039ef
mov dword [0x7e20a5], ebx
mov esi, dword [esp + 0xc]
mov edx, dword [0x7e201a]
mov dword [0x7e2025], eax
inc edx
add dword [0x7e2080], eax
mov dword [esp - 0x24], ecx
mov dword [ebp - 0x74], 0x1b
mov eax, dword [0x7f3684]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
test eax, eax
je 0x403a41
xchg dword [esp - 0x12], edi
sub eax, dword [0x7e2073]
mov ecx, 0xac
mov dword [0x7e20ba], esi
mov dword [0x7e2079], eax
mov dword [0x7e20a9], edi
mov dword [0x7e20a3], edx
mov dword [esp - 4], ecx
mov dword [0x7e2013], edx
cmp ecx, dword [ebp - 0x10]
jl 0x403a6a
mov dword [0x7e201a], esi
mov dword [0x7e207c], edx
jmp 0x403a7c
mov dword [0x7e2097], edi
mov dword [0x7e2044], edx
mov dword [0x7e204c], esi
mov dword [ebp - 0x7c], 0x1a2a1
mov dword [ebp - 0x80], 0x1f4d1
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.advapi32.dll_AreAllAccessesGranted
lea edi, [0x7e210a]
mov dword [edi + 0x18], 0x61
mov dword [0x7e20df], 0x14f74
test eax, eax
jne 0x403ab6
mov ecx, dword [esp + 0x24]
mov dword [0x7e2065], edi
mov edi, eax
mov dword [0x7e2109], edx
mov dword [0x7e2070], ebx
mov dword [esp - 4], ebx
mov dword [0x7e20eb], edi
mov dword [0x7e20fa], ebx
mov dword [0x7e2102], edx
mov dword [0x7e20bf], 0x15374
mov dword [0x7e2018], ecx
mov edi, eax
cmp word [0x7e2016], 0
jne 0x403b12
mov dword [0x7e20c3], edx
mov dword [0x7e2029], 0x149b6
mov dword [0x7e207f], edx
mov dword [0x7e20fb], ecx
mov dword [0x7e207a], ebx
mov dword [0x7e201f], edx
sub esi, dword [0x7e2045]
mov dword [0x7e20fd], edi
mov eax, dword [ebp - 0x84]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
mov dword [ebp - 0x88], 9
mov eax, dword [0x7f3684]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x88]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
add edi, ecx
mov dword [0x7e205f], eax
mov dword [0x7e209e], esi
sub ebx, 0xc
cmp byte [0x7e20a3], 0
jge 0x403b97
mov dword [0x7e205b], 0x1240f
mov dword [0x7e20fe], edi
lea esi, [0x7e2057]
add dword [esi], 0xf
inc dword [0x7e20a7]
mov dword [0x7e2083], eax
xchg dword [0x7e2025], ebx
mov dword [0x7e204d], esi
mov eax, dword [ebp - 0x90]
push eax
call sub.kernel32.dll_ConvertDefaultLocale
test eax, eax
jne 0x403be2
mov dword [0x7e2038], edx
mov dword [0x7e2059], esi
mov dword [esp - 0x20], edx
mov dword [0x7e204d], 0x11da8
mov word [0x7e2076], 0xc4ab
mov dword [ebp - 0x94], 0x1a6c6
mov dword [ebp - 0x98], 0x15bdc
mov eax, 0x403d30
mov dword [ebp - 0x9c], eax
mov eax, 0x403d40
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x94]
push eax
call sub.user32.dll_FindWindowExA
mov dword [ebp - 0xa4], 0x1c171
mov byte [ebp - 0xa5], 0xa
mov al, byte [ebp - 0xa5]
push eax
mov eax, dword [ebp - 0xa4]
push eax
call sub.kernel32.dll_IsDBCSLeadByteEx
test eax, eax
jne 0x403c80
mov word [0x7e20c4], 0xda11
mov dword [0x7e206b], ecx
mov word [0x7e20c9], 0xf7a
mov word [0x7e2065], 0xe653
mov dword [0x7e209f], 0x16c1d
mov dword [esp - 4], ebx
mov dword [0x7e20eb], edi
mov dword [0x7e20fa], ebx
mov dword [0x7e2102], edx
mov dword [0x7e20bf], 0x15374
call fcn.00402afc
mov esp, ebp
pop ebp
ret