Function at 0x1102240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11226d6
mov eax, dword fs:[0]
push eax
sub esp, 0x7e8
mov eax, dword [0x1151068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7e8], 0x60
push 1
mov dword [ebp - 4], 0
call fcn.01106a4b
add esp, 4
mov dword [ebp - 0x7f0], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x7e4]
push 0x7a8
add ecx, 0xfffea467
push 0x1152ce8
mov dword [0x11519f8], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movzx ecx, byte [0x11519a4]
mov edi, dword [0x11519b0]
mov dword [ebp - 0x7d8], eax
cmp ecx, edi
ja 0x110230d
mov edx, dword [0x11519f8]
mov eax, edi
mov ecx, edx
mov byte [0x11519a5], dl
shl ecx, 5
mov esi, edx
add ecx, edx
sub esi, edi
sub eax, ecx
sub esi, 0x27
xor ecx, ecx
sub esi, eax
lea eax, [edi - 0x2371]
sbb ecx, ecx
add eax, edx
add esi, eax
mov dword [0x1151998], esi
adc ecx, 0
mov dword [0x115199c], ecx
jmp 0x1102313
mov esi, dword [0x1151998]
mov ecx, esi
call fcn.011020a0
mov esi, dword [ebp - 0x7d8]
mov eax, dword [0x11519f8]
add esi, 0xffffdc8f
add esi, eax
cmp eax, 0x60
ja 0x1102363
mov edx, dword [0x1151998]
lea edi, [eax - 0x2371]
movzx eax, byte [0x11519a4]
add edi, edx
movzx ecx, dl
imul ecx, eax
lea eax, [edx - 0x2b]
mov dword [ebp - 0x7e8], edi
add eax, edi
mov dword [0x11519f8], eax
mov byte [0x11519a4], cl
push 0x1152ce8
lea ecx, [ebp - 0x7d0]
call fcn.01102b10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7b8]
mov edi, dword [0x1151998]
mov eax, edi
mov edx, dword [0x11519f8]
shl eax, 5
add eax, edi
sub eax, dword [0x11519b0]
add edx, eax
mov eax, 0
mov dword [0x11519f8], edx
sub edx, dword [0x11519b0]
sub edx, 0x27
add esi, edx
lea edx, [ecx + 1]
mov dword [ebp - 0x7d4], esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x11023b7
mov eax, dword [ebp - 0x7bc]
sub ecx, edx
mov edx, dword [ebp - 0x7c0]
sub eax, edx
mov dword [ebp - 0x7e0], ecx
push ecx
cmp ecx, eax
ja 0x110241a
cmp dword [ebp - 0x7bc], 0x10
lea eax, [ecx + edx]
mov dword [ebp - 0x7c0], eax
lea esi, [ebp - 0x7d0]
cmovae esi, dword [ebp - 0x7d0]
lea eax, [ebp - 0x7b8]
add esi, edx
push eax
push esi
call fcn.01109550
mov eax, dword [ebp - 0x7e0]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x7d4]
jmp 0x1102440
lea eax, [ebp - 0x7b8]
mov byte [ebp - 0x7e0], 0
push eax
push dword [ebp - 0x7e0]
push ecx
lea ecx, [ebp - 0x7d0]
call fcn.01104f30
mov edi, dword [0x1151998]
mov eax, dword [0x11519f8]
mov ecx, dword [ebp - 0x7d8]
add eax, 0xfffea69a
add eax, ecx
mov dword [0x11519f8], eax
call fcn.01101f50
mov ecx, dword [ebp - 0x7c0]
xor edx, edx
add ecx, 0xffffffd5
add ecx, esi
mov esi, dword [0x115199c]
mov eax, ecx
mov dword [0x11519f8], ecx
sub eax, edi
add dword [ebp - 0x7d4], eax
call fcn.01101f50
mov ecx, dword [0x11519f8]
movzx edx, byte [0x11519a4]
mov dword [ebp - 0x7ec], ecx
add ecx, 0xffffdc8f
add ecx, edi
mov dword [ebp - 0x7d8], eax
mov dword [ebp - 0x7dc], ecx
mov ecx, 2
mov dword [ebp - 0x7e0], edx
cmp eax, edx
je 0x11024ff
movzx eax, byte [ecx + 0x11519a0]
cdq
add edi, eax
mov eax, dword [ebp - 0x7d8]
mov dword [0x1151998], edi
adc esi, edx
add eax, 0xfffea69a
add dword [ebp - 0x7ec], eax
movzx eax, byte [0x11519a2]
cdq
mov dword [0x115199c], esi
cmp edi, eax
jne 0x11024f3
cmp esi, edx
je 0x1102507
mov edx, dword [ebp - 0x7e0]
mov eax, dword [ebp - 0x7d8]
add ecx, 2
cmp ecx, 0x2f
jl 0x11024b6
mov eax, dword [ebp - 0x7d4]
sub eax, dword [ebp - 0x7dc]
mov ecx, dword [ebp - 0x7e8]
add eax, 3
mov dword [ebp - 0x7d8], esi
mov dword [0x11519f8], eax
cmp dword [0x11519c8], ecx
ja 0x1102568
lea eax, [ecx - 0x2371]
mov dword [0x11519cc], edi
mov dword [ebp - 0x7d4], eax
mov eax, 0xfffffffe
mul ecx
mov edx, 0x23
add dword [ebp - 0x7d4], eax
mov eax, edi
mul edx
mov edx, dword [ebp - 0x7d4]
add edx, eax
add edx, 0xffffffd9
mov dword [ebp - 0x7d4], edx
mov ecx, dword [ebp - 0x7dc]
call fcn.01101f50
cmp byte [0x11519b4], 7
mov ecx, eax
mov dword [0x11519b0], ecx
jne 0x11025a0
mov ecx, dword [0x11519f8]
mov eax, dword [ebp - 0x7d4]
add ecx, 0xffffffd5
add eax, ecx
mov ecx, dword [0x11519b0]
mov dword [0x11519f8], eax
mov edx, 0x22
movzx eax, byte [0x11519a2]
cmp ecx, eax
je 0x11025ef
sub byte [edx + 0x11519a0], cl
mov eax, edi
sub eax, ecx
add dword [0x11519f8], eax
mov eax, dword [0x11519f8]
mov ecx, eax
shl ecx, 5
add ecx, eax
mov dword [0x11519f8], eax
mov eax, dword [0x11519b0]
sub eax, ecx
mov ecx, dword [0x11519b0]
sub edi, eax
mov dword [0x1151998], edi
sbb esi, 0
mov dword [0x115199c], esi
sub edx, 2
cmp edx, 3
jg 0x11025a5
xor eax, eax
cmp eax, esi
jb 0x1102639
ja 0x1102603
cmp ecx, edi
jb 0x1102639
mov edx, dword [ebp - 0x7dc]
mov eax, dword [0x11519c8]
imul eax, edx
lea ecx, [edx - 0x2371]
add ecx, edi
lea edi, [edx - 0x2b]
add edi, ecx
mov dword [0x11519b0], ecx
xor esi, esi
mov dword [0x11519c8], eax
mov dword [0x1151998], edi
mov dword [0x115199c], esi
jmp 0x110263f
mov edx, dword [ebp - 0x7dc]
cmp dword [str.._AVios_base_std__], 7
je 0x1102662
mov eax, ecx
shl eax, 5
add eax, ecx
sub edx, eax
sub edi, edx
mov dword [0x1151998], edi
sbb esi, 0
mov dword [0x115199c], esi
mov ecx, edi
call fcn.01101010
cmp byte [0x11519b4], 7
mov ecx, dword [0x1151998]
mov edx, dword [0x11519f8]
je 0x1102695
mov eax, ecx
shl eax, 5
add eax, ecx
sub eax, dword [0x11519b0]
add edx, eax
mov dword [0x11519f8], edx
jmp 0x110269f
lea eax, [ecx - 0x2b]
add eax, edx
mov dword [0x11519b0], eax
mov eax, edx
shl eax, 5
add eax, edx
mov edx, dword [ebp - 0x7e8]
sub edx, eax
sub ecx, edx
mov dword [0x1151998], ecx
sbb dword [0x115199c], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x7bc]
cmp edx, 0x10
jb 0x11026f7
mov ecx, dword [ebp - 0x7d0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x11026ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1102758
push edx
push ecx
call fcn.01107a6e
add esp, 8
mov dword [ebp - 0x7c0], 0
mov dword [ebp - 0x7bc], 0xf
mov byte [ebp - 0x7d0], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x7f0]
test ecx, ecx
je 0x1102736
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1102736
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01107a28
mov esp, ebp
pop ebp
ret 0xc
call fcn.0110f844
int3