Function at 0x10035ef0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
test eax, eax
je 0x10035f25
cmp byte [eax], 0
jne 0x10035f58
cmp byte [0x1019db18], 0
jne 0x10035f58
push 0x1019db18
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x10035f58
push 0x10148094
push 0x1019db18
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10035f58
mov edi, dword [esp + 0x18]
call fcn.10035e40
xor edx, edx
mov ecx, 0x2710
div ecx
mov esi, edx
call fcn.10035e40
xor edx, edx
mov ecx, 0x2710
div ecx
mov dword [esp + 0x14], edx
call fcn.10035e40
xor edx, edx
mov ecx, 0x64
div ecx
push 0x103
push 0
mov dword [esp + 0x18], 0x585858
mov byte [esp + 0x12c], 0
mov ebx, edx
lea edx, [esp + 0x12d]
push edx
call fcn.10116880
add esp, 0xc
test edi, edi
je 0x10035ff5
mov al, byte [edi]
test al, al
je 0x10035ff5
cmp al, 0x61
jl 0x10035fc5
cmp al, 0x7a
jg 0x10035fc5
sub al, 0x20
mov byte [esp + 0x10], al
mov al, byte [edi + 1]
test al, al
je 0x10035ffd
cmp al, 0x61
jl 0x10035fda
cmp al, 0x7a
jg 0x10035fda
sub al, 0x20
mov byte [esp + 0x11], al
mov al, byte [edi + 2]
test al, al
je 0x10035ffd
cmp al, 0x61
jl 0x10035fef
cmp al, 0x7a
jg 0x10035fef
sub al, 0x20
mov byte [esp + 0x12], al
jmp 0x10035ffd
mov dword [esp + 0x10], 0x504d54
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.10116880
add esp, 0xc
cmp byte [esp + 0x1c], 0
jne 0x10036025
mov dword [esp + 0x1c], 0x706d74
test bl, 1
je 0x1003604a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push ebx
lea eax, [esp + 0x20]
push eax
push str._s_02u__04u__04u._s
lea ecx, [esp + 0x13c]
push ecx
jmp 0x10036068
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push str._s_02u__04u__04u._s
lea edx, [esp + 0x13c]
push edx
call fcn.1010d6a8
mov eax, dword [esp + 0x254]
add esp, 0x1c
test eax, eax
je 0x10036090
cmp byte [eax], 0
je 0x10036090
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10036084
jmp 0x100360aa
mov eax, 0x1019db18
mov edx, ebp
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100360a0
test ebp, ebp
je 0x100360d3
cmp byte [ebp], 0
je 0x100360d3
mov eax, ebp
inc eax
cmp byte [eax], 0
jne 0x100360b6
sub eax, ebp
je 0x100360d3
cmp byte [eax + ebp - 1], 0x5c
je 0x100360d3
push 0x10149ea8
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x124]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100360e0
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100360f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
xor edx, edx
mov ecx, ebp
call fcn.10044660
add esp, 8
test eax, eax
je 0x10035f54
mov ecx, dword [esp + 0x230]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010d699
add esp, 0x224
ret