Function at 0x10035050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e190
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100c400c]
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 - 0x4c], edi
mov dword [ebp - 0x50], edi
xor eax, eax
mov word [ebp - 0x44], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
test edx, edx
je 0x10035131
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, edx
mov byte [ebp - 4], 1
lea eax, [ecx + 2]
mov dword [ebp - 0x4c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100350c2
sub ecx, dword [ebp - 0x4c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.100199c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100199c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10008ff0
test ebx, ebx
jne 0x1003510f
test esi, esi
je 0x100352bd
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.10034ee0
cmp edx, ebx
ja 0x100352bd
jb 0x10035131
cmp eax, esi
jae 0x100352bd
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
test ebx, ebx
jne 0x10035178
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10035160
sub ecx, edx
lea eax, [ebp - 0x44]
sar ecx, 1
push ecx
jmp 0x100353f1
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jge 0x1003518c
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.1001b200
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.100343f0
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.1001b200
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.10034ee0
cmp edx, dword [ebp + 0xc]
ja 0x100352bd
jb 0x100351dc
cmp eax, esi
jae 0x100352bd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x10035288
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100696c1
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x45], 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, dword [ebp - 0x4c]
test eax, eax
jne 0x10035224
mov byte [ebp - 0x45], al
jmp 0x10035254
push ebx
lea ecx, [ebp - 0x40]
call fcn.1002b660
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100199c0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10008ff0
push ebx
call fcn.10069087
add esp, 4
cmp byte [ebp - 0x45], 0
je 0x10035288
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x1003526e
test esi, esi
je 0x100352bd
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.10034ee0
cmp edx, ebx
ja 0x100352bd
jb 0x10035288
cmp eax, esi
jae 0x100352bd
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100352a5
sub ecx, edx
lea eax, [ebp - 0x44]
sar ecx, 1
push ecx
jmp 0x100353f1
lea ecx, [ebp - 0x28]
call fcn.1002c420
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push 3
push 0x100b5ee4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.100199c0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10019b20
lea ecx, [ebp - 0x40]
call fcn.10008ff0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push 6
push str.XXXXXX
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.100199c0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10019b20
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10008ff0
mov eax, dword [ebp - 0x18]
lea esi, [eax + 1]
cmp eax, esi
jge 0x10035374
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1001b200
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wmktemp_s]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, eax
cmovae ecx, dword [ebp - 0x28]
call fcn.100343f0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.1001b200
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
test esi, esi
je 0x100353db
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100353c6
sub ecx, edx
lea eax, [ebp - 0x44]
sar ecx, 1
push ecx
jmp 0x100353f1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
cmp edi, eax
je 0x100353f9
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
mov ecx, edi
call fcn.100199c0
lea ecx, [ebp - 0x28]
call fcn.10008ff0
mov eax, edi
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.10069076
mov esp, ebp
pop ebp
ret