Function at 0x4102a5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a4
mov eax, dword [0x4261d4]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
push 0x4269e0
push 0x104
mov dword [esp + 0x20], ebx
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [0x426074], edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCurrentDirectoryW]
push edi
xor edx, edx
mov ecx, esi
call fcn.00402014
mov edi, eax
xor esi, esi
mov dword [esp + 0x1c], edi
cmp word [edi], si
je 0x41a3d2
mov ecx, edi
call fcn.00405a82
cmp word [eax], si
jne 0x416bea
cmp dword [0x426124], 0
jne 0x41a3fc
mov ecx, edi
call fcn.0040220d
mov ecx, eax
call fcn.00402508
test byte [ebp + 8], 1
mov esi, eax
jne 0x414813
mov eax, dword [esp + 0x10]
mov ecx, ebx
or dword [0x426074], eax
push esi
call dword [0x442430]
call ebx
test eax, eax
jne 0x41a480
mov ecx, edi
call fcn.00405a82
mov edi, eax
mov dword [esp + 0x1c], eax
xor eax, eax
cmp word [edi], ax
jne 0x410317
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401200
mov esp, ebp
pop ebp
ret 4
xor ebx, ebx
mov ecx, esi
cmp dword [0x42602c], 3
setne bl
xor eax, eax
mov dword [0x4260a4], eax
dec ebx
lea eax, [esp + 0x20]
and ebx, 0xffffffea
push eax
lea eax, [esp + 0x54]
add ebx, 0x37
push eax
mov edx, ebx
call fcn.00408792
test al, al
je 0x41a404
test byte [esp + 0x50], 0x10
jne 0x41491f
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
call fcn.0040ae97
mov edi, dword [esp + 0x3c]
mov eax, 0x104
sub edi, esi
sar edi, 1
cmp edi, eax
jae 0x41491f
push esi
mov edx, eax
lea ecx, [esp + 0x2a4]
call fcn.00401da3
lea eax, [edi + edi]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
cmp eax, 0x208
jae 0x41a4d0
xor ecx, ecx
mov edx, 0x104
mov word [esp + eax + 0x2a0], cx
lea ecx, [esp + 0x2a0]
mov eax, dword [esp + 0x10]
or dword [0x426074], eax
lea eax, [esp + 0x7c]
push eax
call fcn.00402c8a
lea eax, [esp + 0x2a0]
mov ecx, edi
push eax
call dword [0x442430]
call edi
mov dword [esp + 0x24], eax
test eax, eax
jne 0x41a46a
push dword [esp + 0x20]
lea edx, [esp + 0x54]
mov ecx, fcn.00402fb0
push ebx
call fcn.0040b003
test al, al
mov eax, dword [esp + 0x28]
jne 0x41488f
mov ecx, dword [esp + 0x20]
call fcn.00402fd4
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41035b
jmp 0x41a497
xor eax, eax
push eax
push 0x232e
jmp 0x41a3f5
mov dword [esp + 0x10], 1
jmp 0x410317
test byte [ebp + 8], 2
je 0x41a3ef
mov ecx, edi
call fcn.0040220d
push eax
mov ecx, ebx
call dword [0x442430]
call ebx
jmp 0x410373
push esi
push 0x232a
call fcn.0040bd02
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x410373
mov ecx, dword [0x4260a4]
test ecx, ecx
je 0x41a41e
cmp ecx, 2
je 0x41a41e
cmp ecx, 0x12
je 0x41a41e
xor eax, eax
push eax
push ecx
jmp 0x41a3f5
test byte [ebp + 8], 4
je 0x41a4b7
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push esi
call dword [0x442430]
call ebx
test eax, eax
je 0x41035b
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 1
je 0x41a45e
push esi
push 1
push 0x235d
call fcn.0040bd02
add esp, 0xc
test byte [ebp + 8], 8
jne 0x41035b
jmp 0x41a3fc
xor eax, eax
inc eax
test byte [ebp + 8], 8
mov dword [esp + 0x14], eax
jne 0x4148e2
jmp 0x410373
test byte [ebp + 8], 8
mov dword [esp + 0x14], 1
jne 0x414912
jmp 0x41a3fc
cmp dword [esp + 0x10], 0
je 0x41035b
push esi
push 1
push 0x235d
call fcn.0040bd02
add esp, 0xc
jmp 0x41035b
xor eax, eax
cmp ecx, 3
push 0
setne al
dec eax
and eax, 0x232c
add eax, 2
push eax
jmp 0x41a3f5
call fcn.0041c651
int3