Function at 0x100104f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d080
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.10028a90
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 0x10010548
mov ecx, ebx
call fcn.100017e0
push ebx
call fcn.10027e45
add esp, 4
mov dword [edi], esi
push 0x1c
call fcn.10027eca
add esp, 4
mov dword [ebp - 0x104c], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1001056a
push 1
mov ecx, eax
call fcn.10001750
jmp 0x1001056c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
cmp eax, esi
je 0x100106ae
mov ecx, eax
call fcn.100010c0
test al, al
je 0x100106ae
push 0x800
lea eax, [ebp - 0x810]
push esi
push eax
call fcn.10027e50
call fcn.10005b70
push eax
lea ecx, [ebp - 0x810]
push str._swebmail.ini
push ecx
call fcn.10001f90
lea edx, [ebp - 0x810]
push edx
call fcn.10018b21
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.100277de
mov ebx, eax
add esp, 0x20
mov dword [ebp - 0x104c], ebx
cmp ebx, esi
je 0x100106ae
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.100199fb
add esp, 0x10
cmp eax, esi
jne 0x1001069e
push 0x800
lea edx, [ebp - 0x810]
push esi
push edx
call fcn.10027e50
push 0x7fe
lea ecx, [ebp - 0x100e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x1010], ax
call fcn.10027e50
lea edx, [ebp - 0x1010]
push edx
call fcn.1001904b
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.10018c88
mov byte [ebp - 4], 2
push 0x1003f304
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x1070]
call fcn.10018fc6
test eax, eax
jne 0x100106b5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1070]
call fcn.10018fbb
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.10027e45
add esp, 4
xor al, al
jmp 0x1001094f
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100106c0
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x1070]
call fcn.10018cd9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1070]
call fcn.10018fbb
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.10029097
mov edi, eax
add esp, 8
test edi, edi
je 0x100107c5
push 0x1003f418
push 0
mov esi, edi
call fcn.10029097
add esp, 8
cmp byte [esi], 0x5b
mov edi, eax
jne 0x100107b7
inc esi
push 0x5d
push esi
call fcn.10029170
add esp, 8
test eax, eax
je 0x100107b7
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.10002e50
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1048]
push ecx
call fcn.10005d00
add esp, 8
mov byte [ebp - 4], 5
lea edx, [ebp - 0x1048]
push edx
lea ecx, [ebp - 0x1064]
call fcn.10004440
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1048]
call fcn.100025a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x102c]
call fcn.100024c0
test edi, edi
jne 0x10010713
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 0x100108b6
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 0x10010820
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10010820
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x102c]
call fcn.10002f70
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1054]
push esi
lea edx, [ebp - 0x102c]
push edx
call fcn.100102a0
mov bl, al
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1018], 8
jb 0x10010877
mov eax, dword [ebp - 0x102c]
push eax
call fcn.10027e45
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 0x100108ee
mov eax, dword [ebp - 0x1050]
inc eax
add esi, 0x1c
mov dword [ebp - 0x1050], eax
cmp eax, edi
jb 0x100107f2
mov ebx, dword [ebp - 0x104c]
push 0
lea ecx, [ebp - 0x810]
push 0
push ecx
call fcn.10018d41
mov esi, dword [ebp - 0x1054]
mov ecx, dword [esi]
add esp, 0xc
call fcn.10001ce0
test al, al
jne 0x1001092a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1064]
call fcn.10003ce0
jmp 0x1001069e
push 0
lea edx, [ebp - 0x810]
push 0
push edx
call fcn.10018d41
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1064]
call fcn.10003ce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x104c]
push eax
call fcn.10027e45
add esp, 4
xor al, al
jmp 0x1001094f
mov byte [esi + 4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1064]
call fcn.10003ce0
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.10027e45
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.10027de5
mov esp, ebp
pop ebp
ret