Function at 0x41f1af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x477edc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x24c], eax
call fcn.004232cb
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, eax
call fcn.00428d73
test al, al
je 0x41f262
push dword [ebp - 0x24c]
push dword [ebp - 0x248]
push edi
push dword [ebp - 0x244]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp - 0x268]
push dword [ebp - 0x250]
push ebx
push esi
call dword [ebp - 0x260]
test eax, eax
jne 0x41f45f
call fcn.004232cb
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, eax
call fcn.00428d6c
test al, al
je 0x41f301
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0x10
push dword [ebp - 0x24c]
mov dword [ebp - 0x250], eax
call fcn.00423d71
add esp, 0xc
test al, al
je 0x41f2f5
call fcn.00423976
mov dword [ebp - 0x260], eax
test eax, eax
je 0x41f2f5
mov ecx, dword [ebp - 0x254]
xor eax, eax
mov esi, eax
mov edi, eax
mov dword [ebp - 0x248], esi
mov ebx, eax
test ecx, ecx
je 0x41f2d3
push ecx
call fcn.004236e4
mov edi, eax
pop ecx
test edi, edi
je 0x41f2f5
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x41f314
push eax
call fcn.004236e4
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41f314
xor esi, esi
push esi
push edi
call fcn.0042334c
pop ecx
pop ecx
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455cf4
leave
ret 0x2c
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x41f344
push eax
call fcn.004236e4
mov esi, eax
mov dword [ebp - 0x248], esi
pop ecx
test esi, esi
jne 0x41f344
push esi
push edi
call fcn.0042334c
push esi
push ebx
call fcn.0042334c
add esp, 0x10
jmp 0x41f2f5
xor ecx, ecx
test edi, edi
je 0x41f34f
mov eax, dword [edi + 4]
jmp 0x41f351
mov eax, ecx
mov dword [ebp - 0x258], eax
test ebx, ebx
je 0x41f360
mov eax, dword [ebx + 4]
jmp 0x41f362
mov eax, ecx
mov dword [ebp - 0x254], eax
test esi, esi
je 0x41f371
mov eax, dword [esi + 4]
jmp 0x41f373
mov eax, ecx
mov dword [ebp - 0x25c], eax
mov esi, 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x244], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41f3ac
cmp eax, esi
lea ecx, [ebp - 0x20c]
push 0
pop esi
cmovae ecx, esi
mov dword [ebp - 0x244], ecx
jmp 0x41f3ae
xor esi, esi
push dword [ebp - 0x260]
lea ecx, [ebp - 0x26c]
call fcn.004264d5
push 0x34
lea eax, [ebp - 0x240]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0x10
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x26c]
push 0xd
push eax
call fcn.0041f088
mov esi, eax
xor eax, eax
push eax
push edi
call fcn.0042334c
xor edi, edi
push edi
push ebx
call fcn.0042334c
push edi
push dword [ebp - 0x248]
call fcn.0042334c
add esp, 0x44
test esi, esi
jne 0x41f2f5
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x238], edi
jne 0x41f301
xor eax, eax
inc eax
jmp 0x41f303