Function at 0x10010500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d070
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.10028aa0
mov eax, dword [0x101165dc]
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 ebx, dword [edi]
xor esi, esi
mov dword [ebp - 0x1054], edi
mov byte [edi + 4], 0
cmp ebx, esi
je 0x10010558
mov ecx, ebx
call fcn.100017e0
push ebx
call fcn.10027e55
add esp, 4
mov dword [edi], esi
push 0x1c
call fcn.10027eda
add esp, 4
mov dword [ebp - 0x104c], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1001057a
push 1
mov ecx, eax
call fcn.10001750
jmp 0x1001057c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
cmp eax, esi
je 0x100106be
mov ecx, eax
call fcn.100010c0
test al, al
je 0x100106be
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.10027e60
call fcn.10005c20
push eax
lea ecx, [ebp - 0x810]
push str._swebmail.ini
push ecx
call fcn.10002050
lea edx, [ebp - 0x810]
push edx
call fcn.10018b31
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.100277ee
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x104c], ebx
cmp ebx, esi
je 0x100106be
mov dword [ebp - 0x1074], ebx
mov dword [ebp - 4], 1
push 0x26
push str.45D237E8_AEEA_4FCE_BC18_E4C854077DBC
lea ecx, [ebp - 0x810]
push ebx
push ecx
mov byte [edi + ebx], 0
call fcn.10019a0b
add esp, 0x10
cmp eax, esi
jne 0x100106ae
push 0x800
lea edx, [ebp - 0x810]
push esi
push edx
call fcn.10027e60
push 0x7fe
lea ecx, [ebp - 0x100e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x1010], ax
call fcn.10027e60
lea edx, [ebp - 0x1010]
push edx
call fcn.1001905b
add esp, 0x1c
lea eax, [ebp - 0x810]
push eax
push esi
push 0x1003f500
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x1070]
call fcn.10018c98
mov byte [ebp - 4], 2
push 0x1003f304
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x1070]
call fcn.10018fd6
test eax, eax
jne 0x100106c5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1070]
call fcn.10018fcb
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.10027e55
add esp, 4
xor al, al
jmp 0x1001095f
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100106d0
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x1070]
call fcn.10018ce9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1070]
call fcn.10018fcb
mov dword [ebp - 0x1060], esi
mov dword [ebp - 0x1064], esi
mov dword [ebp - 0x105c], esi
mov byte [ebp - 4], 3
push 0x1003f418
push ebx
call fcn.100290a7
mov edi, eax
add esp, 8
test edi, edi
je 0x100107d5
push 0x1003f418
push 0
mov esi, edi
call fcn.100290a7
add esp, 8
cmp byte [esi], 0x5b
mov edi, eax
jne 0x100107c7
inc esi
push 0x5d
push esi
call fcn.10029180
add esp, 8
test eax, eax
je 0x100107c7
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x101c], 0
mov byte [ebp - 0x102c], 0
mov byte [ebp - 4], 4
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x102c]
call fcn.10002f00
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1048]
push ecx
call fcn.10005db0
add esp, 8
mov byte [ebp - 4], 5
lea edx, [ebp - 0x1048]
push edx
lea ecx, [ebp - 0x1064]
call fcn.100044f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1048]
call fcn.10002670
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x102c]
call fcn.10002590
test edi, edi
jne 0x10010723
mov esi, dword [ebp - 0x1060]
mov ecx, dword [ebp - 0x1064]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0x1050], 0
je 0x100108c6
mov esi, ecx
xor eax, eax
mov word [ebp - 0x102c], ax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], 0
lea edx, [eax + 2]
jmp 0x10010830
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10010830
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x102c]
call fcn.10003020
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1054]
push esi
lea edx, [ebp - 0x102c]
push edx
call fcn.100102b0
mov bl, al
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1018], 8
jb 0x10010887
mov eax, dword [ebp - 0x102c]
push eax
call fcn.10027e55
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], 0
mov word [ebp - 0x102c], cx
test bl, bl
je 0x100108fe
mov eax, dword [ebp - 0x1050]
inc eax
add esi, 0x1c
mov dword [ebp - 0x1050], eax
cmp eax, edi
jb 0x10010802
mov ebx, dword [ebp - 0x104c]
push 0
lea ecx, [ebp - 0x810]
push 0
push ecx
call fcn.10018d51
mov esi, dword [ebp - 0x1054]
mov ecx, dword [esi]
add esp, 0xc
call fcn.10001d90
test al, al
jne 0x1001093a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1064]
call fcn.100037f0
jmp 0x100106ae
push 0
lea edx, [ebp - 0x810]
push 0
push edx
call fcn.10018d51
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1064]
call fcn.100037f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x104c]
push eax
call fcn.10027e55
add esp, 4
xor al, al
jmp 0x1001095f
mov byte [esi + 4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1064]
call fcn.100037f0
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.10027e55
add esp, 4
mov al, 1
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.10027df5
mov esp, ebp
pop ebp
ret