Function at 0x10109a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016b9cb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x101bd92c]
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 edi, ecx
mov dword [ebp - 0x43c], edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x448], ebx
call fcn.10098090
add esp, 0xc
cmp word [ebx], 0
jne 0x10109ac3
xor ecx, ecx
jmp 0x10109adf
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x10109ad0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109ad0
sub ecx, edx
sar ecx, 1
push ecx
add edi, 0x2c
push ebx
mov ecx, edi
call fcn.100048b0
push 6
push str.wb.idx
mov ecx, edi
call fcn.10004660
cmp word [ebx], 0
jne 0x10109b03
xor ecx, ecx
jmp 0x10109b1f
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x10109b10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109b10
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0x43c]
push ecx
push dword [ebp - 0x448]
add ebx, 0x44
mov ecx, ebx
call fcn.100048b0
push 6
push str.wb.dat
mov ecx, ebx
call fcn.10004660
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_WB_IDX__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._s_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x10109b7a
xor ecx, ecx
jmp 0x10109b92
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109b83
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x43c]
push ecx
add eax, 0x5c
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
mov dword [ebp - 0x444], eax
call fcn.100048b0
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_WB_DAT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._s_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x10109be6
xor ecx, ecx
jmp 0x10109bff
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109bf0
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x43c]
push ecx
add eax, 0x74
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
mov dword [ebp - 0x440], eax
call fcn.100048b0
mov eax, dword [ebp - 0x43c]
mov ecx, eax
mov byte [eax + 6], 6
call fcn.10109220
test eax, eax
jne 0x1010a13a
cmp word [esi], ax
jne 0x10109c3f
xor ecx, ecx
jmp 0x10109c53
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109c44
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.100048b0
push 6
push str.wb.idx
mov ecx, edi
call fcn.10004660
cmp word [esi], 0
jne 0x10109c74
xor ecx, ecx
jmp 0x10109c8f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109c80
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.100048b0
push 6
push str.wb.dat
mov ecx, ebx
call fcn.10004660
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_WB_IDX__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x10109cdc
xor ecx, ecx
jmp 0x10109cf4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109ce5
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_WB_DAT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x10109d3d
xor ecx, ecx
jmp 0x10109d55
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109d46
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
mov ecx, dword [ebp - 0x43c]
call fcn.10109220
test eax, eax
jne 0x1010a13a
mov esi, dword [ebp - 0x44c]
cmp word [esi], ax
jne 0x10109d8a
xor ecx, ecx
jmp 0x10109d9f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109d90
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.100048b0
push 6
push str.wb.idx
mov ecx, edi
call fcn.10004660
cmp word [esi], 0
jne 0x10109dc0
xor ecx, ecx
jmp 0x10109dd4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109dc5
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.100048b0
push 6
push str.wb.dat
mov ecx, ebx
call fcn.10004660
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_WB_IDX__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x10109e21
xor ecx, ecx
jmp 0x10109e3f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109e30
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_WB_DAT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sBACK_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x10109e88
xor ecx, ecx
jmp 0x10109ea0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109e91
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
mov ecx, dword [ebp - 0x43c]
call fcn.10109220
test eax, eax
jne 0x1010a13a
mov esi, dword [ebp - 0x448]
push esi
lea ecx, [ebp - 0x438]
call fcn.10004410
push 6
push str.wb.idx
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.10004660
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.10098090
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x420], 0
jne 0x10109f2f
xor ecx, ecx
jmp 0x10109f4f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
jmp 0x10109f40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109f40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
mov ecx, edi
call fcn.100048b0
push 6
push str.dz.dat
mov ecx, edi
call fcn.10004660
cmp dword [edi + 0x14], 8
jb 0x10109f74
mov edi, dword [edi]
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push edi
push eax
call fcn.1000e180
add esp, 8
cmp word [esi], 0
jne 0x10109f9c
xor ecx, ecx
jmp 0x10109fb0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109fa1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x438]
call fcn.100048b0
push 6
push str.wb.dat
lea ecx, [ebp - 0x438]
call fcn.10004660
cmp word [ebp - 0x420], 0
jne 0x10109fdd
xor ecx, ecx
jmp 0x10109ff5
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10109fe6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
mov ecx, ebx
call fcn.100048b0
push 6
push str.wb.dat
mov ecx, ebx
call fcn.10004660
cmp dword [ebx + 0x14], 8
jb 0x1010a01a
mov ebx, dword [ebx]
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push ebx
push eax
call fcn.1000e180
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_WB_IDX__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sTEMP_s_s_d
push eax
call fcn.10091da4
add esp, 0x20
cmp word [ebp - 0x218], 0
jne 0x1010a06b
xor ecx, ecx
jmp 0x1010a083
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a074
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x444]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
push 0x4e20
push str.1.0.1.0701
push str.__GS_SYS_WB_DAT__
push 0x101917dc
lea eax, [ebp - 0x218]
push str._sTEMP_s_s_d
push eax
call fcn.10091da4
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x1010a0cc
xor ecx, ecx
jmp 0x1010a0e4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010a0d5
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x218]
push eax
call fcn.100048b0
mov ebx, dword [ebp - 0x43c]
mov ecx, ebx
call fcn.10109220
lea ecx, [ebp - 0x438]
test eax, eax
jne 0x1010a133
call fcn.10004470
xor eax, eax
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.1009174c
mov esp, ebp
pop ebp
ret 0xc
call fcn.10004470
jmp 0x1010a140
mov ebx, dword [ebp - 0x43c]
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x1010a113
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x1010a113
cmp dword [esi + 0xc], 0x4e20
jne 0x1010a113
mov ecx, str.__GS__
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1010a180
test dl, dl
je 0x1010a17c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1010a180
add eax, 2
add ecx, 2
test dl, dl
jne 0x1010a160
xor eax, eax
jmp 0x1010a185
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1010a113
lea eax, [esi + 0x10]
mov dword [ebx + 0x20], eax
cmp dword [edi + 0xc], 0x4e20
jne 0x1010a113
mov ecx, str.__GS__
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1010a1c3
test dl, dl
je 0x1010a1bf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1010a1c3
add eax, 2
add ecx, 2
test dl, dl
jne 0x1010a1a3
xor eax, eax
jmp 0x1010a1c8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1010a113
lea eax, [edi + 0x10]
mov dword [ebx + 0x28], eax
mov byte [ebx + 5], 1
mov eax, 1
jmp 0x1010a115