Function at 0x410ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480931
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x496004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x340], esi
mov dword [ebp - 0x32c], ecx
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x344], ebx
cmp word [esi], di
je 0x410d38
nop dword [eax]
inc edi
cmp word [esi + edi*2], 0
jne 0x410d30
mov edx, 2
cmp edi, dword [ebx + 8]
jbe 0x410d6d
xor ecx, ecx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push dword [ebx]
mov esi, eax
call fcn.00436a37
mov dword [ebx], esi
add esp, 8
mov esi, dword [ebp - 0x340]
mov dword [ebx + 8], edi
lea eax, [edi*2 + 2]
mov dword [ebx + 4], edi
push eax
push esi
push dword [ebx]
call fcn.00441fd0
add esp, 0xc
mov ecx, esi
call fcn.00410860
mov dword [ebp - 0x33c], eax
test eax, eax
je 0x410ee0
add eax, eax
xor edx, edx
mov dword [ebp - 0x344], eax
lea edi, [eax + esi]
movzx eax, word [edi]
test ax, ax
je 0x410e01
lea ecx, [edi - 2]
cmp ax, 0x2e
jne 0x410df4
test edx, edx
je 0x410dc9
movzx eax, word [ecx]
mov esi, eax
cmp eax, 0x5c
je 0x410dc9
cmp esi, 0x2f
jne 0x410df4
movzx eax, word [ecx + 4]
test ax, ax
je 0x410e08
cmp eax, 0x5c
je 0x410e08
cmp eax, 0x2f
je 0x410e08
cmp eax, 0x2e
jne 0x410df4
movzx eax, word [ecx + 6]
test ax, ax
je 0x410e08
cmp eax, 0x5c
je 0x410e08
cmp eax, 0x2f
je 0x410e08
movzx eax, word [ecx + 4]
add ecx, 2
inc edx
test ax, ax
jne 0x410db0
mov al, 1
jmp 0x4111c6
xor esi, esi
nop word [eax + eax]
inc esi
cmp word [edi + esi*2], 0
jne 0x410e10
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
lea ecx, [esi*2 + 2]
mov dword [ebp - 0x338], eax
push ecx
push edi
push eax
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x330], esi
call fcn.00441fd0
add esp, 0x10
lea ecx, [ebp - 0x338]
mov dword [ebp - 4], 0
call fcn.00410b10
mov edi, dword [ebp - 0x338]
test al, al
je 0x410ed3
mov eax, dword [ebp - 0x33c]
cmp eax, dword [ebx + 4]
jae 0x410e8d
mov ecx, dword [ebp - 0x344]
xor edx, edx
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov word [ecx + eax], dx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
sub eax, ecx
mov esi, dword [ebp - 0x334]
cmp esi, eax
jbe 0x410eb6
add ecx, esi
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
mov ecx, ebx
and eax, 0xfffffff0
dec eax
push eax
call fcn.00409aa0
mov ecx, dword [ebx + 4]
lea eax, [esi*2 + 2]
push eax
mov eax, dword [ebx]
push edi
lea eax, [eax + ecx*2]
push eax
call fcn.00441fd0
add esp, 0xc
add dword [ebx + 4], esi
push edi
call fcn.00436a37
mov al, 1
jmp 0x4111c3
push 8
call fcn.00436ba1
mov ebx, eax
mov dword [ebp - 0x34c], 0
xor eax, eax
mov dword [ebp - 0x350], ebx
add esp, 4
mov dword [ebp - 0x348], 3
mov word [ebx], ax
mov ecx, dword [ebp - 0x32c]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x410f91
xor edi, edi
cmp word [ecx], di
je 0x410f74
inc edi
mov eax, edi
mov dword [ebp - 0x33c], eax
cmp word [ecx + edi*2], 0
jne 0x410f23
cmp eax, 3
jbe 0x410f74
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push ebx
mov esi, eax
call fcn.00436a37
mov ecx, dword [ebp - 0x32c]
mov ebx, esi
mov esi, dword [ebp - 0x340]
add esp, 8
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x348], edi
lea eax, [edi*2 + 2]
mov dword [ebp - 0x34c], edi
push eax
push ecx
push ebx
call fcn.00441fd0
add esp, 0xc
jmp 0x41110f
cmp byte [0x498871], 0
mov dword [ebp - 0x34c], 0
jne 0x41105e
lea eax, [ebp - 0x118]
mov byte [ebp - 0x118], 0
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x32c], eax
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor ecx, ecx
lea edx, [ebp - 0x118]
test eax, eax
sete cl
push ecx
lea ecx, [ebp - 0x338]
call fcn.0040ada0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x334]
cmp edi, 3
jbe 0x41102d
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push ebx
mov esi, eax
call fcn.00436a37
mov ebx, esi
mov dword [ebp - 0x348], edi
mov esi, dword [ebp - 0x340]
add esp, 8
mov dword [ebp - 0x350], ebx
lea eax, [edi*2 + 2]
mov dword [ebp - 0x34c], edi
push eax
push dword [ebp - 0x338]
push ebx
call fcn.00441fd0
mov byte [ebp - 4], 1
push dword [ebp - 0x338]
call fcn.00436a37
add esp, 0x10
jmp 0x4110fd
xor eax, eax
mov word [ebp - 0x324], ax
lea eax, [ebp - 0x324]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor edi, edi
mov dword [ebp - 0x32c], eax
cmp word [ebp - 0x324], di
je 0x4110df
nop word [eax + eax]
inc edi
mov eax, edi
mov dword [ebp - 0x33c], eax
cmp word [ebp + edi*2 - 0x324], 0
jne 0x411090
cmp eax, 3
jbe 0x4110df
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push ebx
mov esi, eax
call fcn.00436a37
mov ebx, esi
mov dword [ebp - 0x348], edi
mov esi, dword [ebp - 0x340]
add esp, 8
mov dword [ebp - 0x350], ebx
lea eax, [edi*2 + 2]
mov dword [ebp - 0x34c], edi
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
call fcn.00441fd0
add esp, 0xc
mov eax, dword [ebp - 0x32c]
dec eax
cmp eax, 0x103
ja 0x4111b0
test edi, edi
je 0x411165
movzx eax, word [ebx + edi*2 - 2]
cmp eax, 0x5c
je 0x411165
cmp eax, 0x2f
je 0x411165
cmp dword [ebp - 0x348], edi
jne 0x41114f
mov eax, edi
lea ecx, [ebp - 0x350]
shr eax, 1
add edi, 0x10
add eax, edi
and eax, 0xfffffff0
dec eax
push eax
call fcn.00409aa0
mov edi, dword [ebp - 0x34c]
mov ebx, dword [ebp - 0x350]
mov eax, 0x5c
mov word [ebx + edi*2], ax
inc edi
xor eax, eax
mov dword [ebp - 0x34c], edi
mov word [ebx + edi*2], ax
movzx eax, word [ebx]
mov ecx, eax
cmp eax, 0x5c
je 0x411174
cmp ecx, 0x2f
jne 0x4111e4
movzx eax, word [ebx + 2]
mov edx, eax
cmp eax, 0x5c
je 0x411184
cmp edx, 0x2f
jne 0x4111e4
cmp word [ebx + 4], 0x3f
jne 0x4111e4
movzx eax, word [ebx + 6]
mov edx, eax
cmp eax, 0x5c
je 0x41119b
cmp edx, 0x2f
jne 0x4111e4
mov ecx, ebx
call fcn.004107e0
mov dword [ebp - 0x32c], eax
test eax, eax
jne 0x411252
mov byte [ebp - 0x325], 0
push ebx
call fcn.00436a37
mov al, byte [ebp - 0x325]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436a29
mov esp, ebp
pop ebp
ret 4
cmp ecx, 0x61
jb 0x4111ee
cmp ecx, 0x7a
jbe 0x4111f8
cmp ecx, 0x41
jb 0x41121b
cmp ecx, 0x5a
ja 0x41121b
cmp word [ebx + 2], 0x3a
jne 0x41121b
movzx eax, word [ebx + 4]
mov edx, eax
cmp eax, 0x5c
je 0x41120f
cmp edx, 0x2f
jne 0x41121b
mov dword [ebp - 0x32c], 3
jmp 0x411252
mov eax, ecx
cmp eax, 0x5c
je 0x411227
cmp eax, 0x2f
jne 0x4111b0
movzx eax, word [ebx + 2]
cmp eax, 0x5c
je 0x411239
cmp eax, 0x2f
jne 0x4111b0
lea ecx, [ebx + 4]
call fcn.00410700
test eax, eax
je 0x4111b0
add eax, 2
mov dword [ebp - 0x32c], eax
push 8
call fcn.00436ba1
mov ecx, 3
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x33c], ecx
xor edx, edx
mov dword [ebp - 0x330], ecx
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x334], edx
mov word [eax], cx
mov byte [ebp - 4], 3
movzx eax, word [esi]
mov ecx, eax
cmp eax, 0x5c
je 0x411390
cmp ecx, 0x2f
je 0x411390
mov eax, dword [ebp - 0x32c]
xor esi, esi
add eax, eax
mov dword [ebp - 0x354], eax
add eax, ebx
cmp word [eax], si
je 0x4112f2
inc esi
mov ecx, esi
mov dword [ebp - 0x358], ecx
cmp word [eax + esi*2], 0
jne 0x4112b2
cmp ecx, 3
jbe 0x4112f2
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [ebp - 0x338]
and eax, 0xfffffff0
dec eax
push eax
call fcn.00409aa0
mov ecx, dword [ebp - 0x330]
mov edx, dword [ebp - 0x334]
mov dword [ebp - 0x33c], ecx
mov eax, dword [ebp - 0x338]
lea ecx, [eax + edx*2]
lea eax, [esi*2 + 2]
push eax
mov eax, dword [ebp - 0x354]
add eax, ebx
push eax
push ecx
call fcn.00441fd0
mov ecx, dword [ebp - 0x334]
add esp, 0xc
mov eax, dword [ebp - 0x340]
add ecx, esi
xor esi, esi
mov dword [ebp - 0x334], ecx
cmp word [eax], si
je 0x411338
inc esi
cmp word [eax + esi*2], 0
jne 0x411330
mov eax, dword [ebp - 0x33c]
sub eax, ecx
cmp esi, eax
jbe 0x411365
add ecx, esi
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [ebp - 0x338]
and eax, 0xfffffff0
dec eax
push eax
call fcn.00409aa0
mov ecx, dword [ebp - 0x334]
mov eax, dword [ebp - 0x338]
lea ecx, [eax + ecx*2]
lea eax, [esi*2 + 2]
push eax
push dword [ebp - 0x340]
push ecx
call fcn.00441fd0
add esp, 0xc
add dword [ebp - 0x334], esi
jmp 0x411413
lea edx, [esi + 2]
xor eax, eax
mov dword [ebp - 0x358], edx
cmp word [edx], ax
je 0x4113f6
inc eax
mov ecx, eax
mov dword [ebp - 0x354], ecx
cmp word [edx + eax*2], 0
jne 0x4113a0
cmp ecx, 3
jbe 0x4113f6
lea eax, [ecx + 1]
mov edx, 2
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
push dword [ebp - 0x338]
mov esi, eax
call fcn.00436a37
mov eax, dword [ebp - 0x354]
add esp, 8
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x334], eax
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp - 0x338]
call fcn.00441fd0
add esp, 0xc
mov esi, dword [ebp - 0x32c]
lea ecx, [ebp - 0x338]
call fcn.00410b10
test al, al
jne 0x411441
push dword [ebp - 0x338]
mov byte [ebp - 0x325], al
call fcn.00436a37
add esp, 4
jmp 0x4111b7
cmp esi, edi
jae 0x411453
mov edi, esi
xor eax, eax
mov dword [ebp - 0x34c], edi
mov word [ebx + esi*2], ax
mov esi, dword [ebp - 0x344]
lea eax, [ebp - 0x350]
cmp eax, esi
je 0x4114b6
cmp edi, dword [esi + 8]
jbe 0x4114a0
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436ba1
mov esi, eax
mov eax, dword [ebp - 0x344]
push dword [eax]
call fcn.00436a37
mov eax, dword [ebp - 0x344]
add esp, 8
mov dword [eax], esi
mov esi, eax
mov dword [esi + 8], edi
lea eax, [edi*2 + 2]
mov dword [esi + 4], edi
push eax
push ebx
push dword [esi]
call fcn.00441fd0
add esp, 0xc
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
sub eax, ecx
mov edi, dword [ebp - 0x334]
cmp edi, eax
jbe 0x4114df
add ecx, edi
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
mov ecx, esi
and eax, 0xfffffff0
dec eax
push eax
call fcn.00409aa0
mov ecx, dword [esi + 4]
lea eax, [edi*2 + 2]
push eax
mov eax, dword [esi]
push dword [ebp - 0x338]
lea eax, [eax + ecx*2]
push eax
call fcn.00441fd0
add dword [esi + 4], edi
add esp, 0xc
mov byte [ebp - 0x325], 1
push dword [ebp - 0x338]
call fcn.00436a37
add esp, 4
jmp 0x4111b7