Function at 0x10113050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ef839
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x102632d4]
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 ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov byte [ebp - 0x319], 0
cmp dword [ebx], 0
jne 0x101130b1
cmp byte [0x1026b1ce], 0
je 0x101130a6
push 0x10226cf4
call fcn.1010a810
add esp, 4
mov dword [edi], 0xa
jmp 0x1011375b
xorps xmm0, xmm0
lea ecx, [ebp - 0x224]
movlpd qword [ebp - 0x224], xmm0
call fcn.10111790
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x101130e3
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x224]
cmp dword [ebx + 0x20], 0
je 0x10113196
test ecx, ecx
je 0x10113196
mov eax, dword [ecx]
lea edx, [ebp - 0x248]
push edx
call dword [eax + 0x30]
mov edx, 0x7c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.1011ea90
test al, al
je 0x10113187
cmp byte [0x1026b1ce], 0
je 0x1011312f
push 0x10226d44
call fcn.1010a810
add esp, 4
mov dword [edi], 0xb
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.10008820
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x10113754
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10113754
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10113754
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x10113754
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.10008820
lea ecx, [ebx + 0x40]
mov edx, 0x3b
call fcn.1011ea90
test al, al
je 0x101131cf
cmp byte [0x1026b1ce], 0
je 0x101131bd
push 0x10226d2c
call fcn.1010a810
add esp, 4
mov dword [edi], 0xc
mov dword [ebp - 4], 3
jmp 0x1011314b
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x1011321d
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x1011321d
mov eax, dword [ecx]
lea edx, [ebp - 0x248]
push edx
call dword [eax + 0x38]
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.1011ec60
test al, al
je 0x10113364
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x319], 1
mov byte [ebp - 4], 0
call fcn.10008820
mov eax, dword [ebx + 4]
cmp eax, 3
jne 0x1011326e
xorps xmm0, xmm0
lea ecx, [ebp - 0x328]
movlpd qword [ebp - 0x328], xmm0
call fcn.10115e10
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x328]
mov ecx, dword [ebp - 0x324]
shrd esi, ecx, 0x14
mov eax, dword [eax + 4]
cdq
shr ecx, 0x14
cmp ecx, edx
jb 0x1011339b
ja 0x10113264
cmp esi, eax
jbe 0x1011339b
mov eax, dword [ebx + 4]
mov byte [ebp - 0x319], 1
cmp eax, 4
jne 0x101134e5
lea ecx, [ebp - 0x260]
call fcn.10009ab0
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.101a9880
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10113618
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101132c0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10008910
lea eax, [ebp - 0x260]
push eax
call fcn.10010df0
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x260]
push 0x5c
push eax
call fcn.1000f900
mov ecx, dword [ebp - 0x22c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x230]
add esp, 0x10
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1011377f
jmp 0x101133c3
cmp byte [0x1026b1ce], 0
mov dword [edi], 0xd
je 0x10113380
push 0x10226d74
call fcn.1010a810
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.10008820
mov dword [ebp - 4], 5
jmp 0x1011314b
cmp byte [0x1026b1ce], 0
mov dword [edi], 0xe
je 0x101133b7
push 0x10226d58
call fcn.1010a810
add esp, 4
mov dword [ebp - 4], 6
jmp 0x1011314b
push esi
lea ecx, [ebp - 0x248]
call fcn.10009ad0
push 1
push 0x10216968
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 9
call fcn.10009bb0
lea ecx, [ebp - 0x318]
call fcn.10013590
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.100130e0
add esp, 8
test al, al
je 0x101135eb
mov esi, dword [ebp - 0x2c4]
cmp esi, dword [ebp - 0x2bc]
jb 0x101135eb
mov edx, dword [ebp - 0x2c0]
mov eax, dword [ebp - 0x2c8]
ja 0x1011343a
cmp eax, edx
jb 0x101135eb
mov ecx, eax
sub ecx, edx
mov edx, esi
sbb edx, dword [ebp - 0x2bc]
call fcn.10191b80
mov ecx, dword [ebp - 0x2c8]
mov edx, esi
movsd qword [ebp - 0x328], xmm0
call fcn.10191b80
movsd xmm1, qword [ebp - 0x328]
divsd xmm1, xmm0
mulsd xmm1, qword [0x10229830]
addsd xmm1, qword [0x10229770]
movaps xmm0, xmm1
call fcn.10191a60
lea ecx, [ebp - 0x318]
mov dword [ebp - 0x320], eax
mov esi, edx
mov byte [ebp - 4], 9
call fcn.10013610
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 8
call fcn.10008820
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.1000d650
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0
call fcn.10008820
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cdq
cmp esi, edx
ja 0x101134e5
jb 0x10113627
cmp dword [ebp - 0x320], eax
jbe 0x10113627
xorps xmm0, xmm0
mov dword [ebp - 0x2b0], 0
lea ecx, [ebp - 0x2a0]
movlpd qword [ebp - 0x2a8], xmm0
call fcn.10009ab0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x278]
xorps xmm0, xmm0
mov dword [ebp - 0x288], 0
movlpd qword [ebp - 0x280], xmm0
call fcn.10009ab0
lea eax, [ebp - 0x2b0]
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x224]
push eax
sub esp, 0x18
lea eax, [ebx + 8]
mov ecx, esp
mov dword [ebp - 0x324], esp
mov dword [ebp - 0x320], eax
push eax
call fcn.10009ad0
mov byte [ebp - 4], 0xe
mov ecx, esi
mov eax, dword [esi]
mov byte [ebp - 4], 0xd
mov eax, dword [eax + 0x48]
call eax
test al, al
je 0x1011364f
push dword [ebp - 0x2a4]
push dword [ebp - 0x2a8]
call fcn.1011f160
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov ecx, edx
add esp, 8
mov eax, dword [ebx + 0x14]
cdq
cmp ecx, edx
ja 0x10113652
jb 0x1011359e
cmp esi, eax
jae 0x10113652
cmp byte [0x1026b1ce], 0
je 0x101135b4
push 0x10226ebc
call fcn.1010a810
add esp, 4
mov dword [edi], 8
mov byte [ebp - 0x319], 0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xf
call fcn.10008820
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0x10
call fcn.10008820
mov dword [ebp - 4], 0x11
jmp 0x1011314b
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 9
call fcn.10013610
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 8
call fcn.10008820
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.1000d650
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0
call fcn.10008820
cmp byte [0x1026b1ce], 0
mov dword [edi], 0xf
je 0x10113643
push 0x10226edc
call fcn.1010a810
add esp, 4
mov dword [ebp - 4], 0xb
jmp 0x1011314b
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x288]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x324], esp
push dword [ebp - 0x320]
call fcn.10009ad0
mov byte [ebp - 4], 0x12
mov ecx, esi
mov eax, dword [esi]
mov byte [ebp - 4], 0xd
mov eax, dword [eax + 0x50]
call eax
test al, al
je 0x101136fd
push dword [ebp - 0x27c]
push dword [ebp - 0x280]
call fcn.1011f160
mov esi, eax
mov ecx, edx
mov eax, dword [ebx + 0x18]
add esp, 8
cdq
cmp ecx, edx
ja 0x101136fd
jb 0x101136b0
cmp esi, eax
jae 0x101136fd
cmp byte [0x1026b1ce], 0
je 0x101136c6
push 0x10226f04
call fcn.1010a810
add esp, 4
mov dword [edi], 9
mov byte [ebp - 0x319], 0
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x13
call fcn.10008820
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0x14
call fcn.10008820
mov dword [ebp - 4], 0x15
jmp 0x1011314b
mov byte [ebp - 0x319], 1
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x16
call fcn.10008820
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 0x17
call fcn.10008820
mov dword [ebp - 4], 0x18
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x10113754
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10113754
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10113754
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x319]
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.101912fd
mov esp, ebp
pop ebp
ret 0xc
call fcn.10087480
int3