Function at 0x1001c1f0
Capabilities:
Get common file path

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, 3
push ebx
push ecx
sub esp, 0x310
mov eax, dword [ecx + 8]
mov word [ebp - 0x2e8], si
mov edi, dword [ecx + 4]
mov dword [ebp - 0x2b4], 0
mov ebx, dword [ecx + 0xc]
movq xmm0, qword [0x10037a68]
mov dword [ebp - 0x2f8], eax
xor eax, eax
mov edx, dword [ecx]
mov ecx, 0x400c
mov word [ebp - 0x2f2], ax
lea eax, [ebp - 0x268]
mov dword [ebp - 0x2b8], eax
mov eax, 0x400b
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x2f2]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x250], eax
mov eax, 0x400c
movq qword [ebp - 0x2b0], xmm0
mov word [ebp - 0x258], cx
mov dword [ebp - 0x2e0], edi
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x240], eax
mov eax, 8
mov word [ebp - 0x2d8], ax
test ebx, ebx
je 0x1001c4c0
mov eax, dword [ebx]
lea esi, [ebp - 0x2d0]
mov dword [ebp - 0x2fc], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x6c]
mov edx, dword [ebp - 0x2fc]
sub esp, 8
test eax, eax
js 0x1001c4b0
mov eax, 0x400c
mov ecx, 8
mov esi, 9
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x2f8]
mov word [ebp - 0x2c8], cx
mov word [ebp - 0x228], si
mov dword [ebp - 0x2c0], eax
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2b8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10f
mov eax, dword [edx + 0x98]
mov dword [esp], eax
call fcn.10008170
mov eax, dword [ebp - 0x2d0]
mov esi, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esp], eax
call esi
sub esp, 4
cmp word [ebp - 0x2f2], 0
jne 0x1001c49f
mov eax, dword [ebx]
lea edx, [ebp - 0x2f0]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], 0x1003ec78
call dword [eax]
sub esp, 0xc
mov ebx, eax
test ebx, ebx
js 0x1001c49f
test edi, edi
mov dword [esp + 0xc], edi
js 0x1001c5c0
mov dword [esp + 8], str.ERROR.HTM_HTTP__u
lea ebx, [ebp - 0x2a8]
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call fcn.10017530
lea edx, [ebp - 0x218]
mov dword [esp + 4], 0x104
mov dword [esp], edx
mov edi, eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
add edi, eax
mov eax, dword [ebp - 0x2f8]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea ecx, [edi + eax]
lea eax, [ecx + 0x14]
mov dword [ebp - 0x2fc], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
sub esp, 8
mov edi, eax
test eax, eax
je 0x1001c48e
mov eax, dword [ebp - 0x2f8]
lea edx, [ebp - 0x218]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.res:___s_shdoclc.dll__s_s
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x2fc]
mov dword [esp], edi
add ecx, 0x15
mov dword [esp + 4], ecx
call fcn.10017530
mov eax, dword [ebp - 0x2f0]
mov edx, dword [eax]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x20
mov dword [esp], edi
call esi
sub esp, 4
mov eax, dword [ebp - 0x2f0]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [ebp - 0x2d0], 0
jmp 0x1001c2de
mov dword [ebp - 0x2d0], 0
mov eax, 0x400c
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x230], eax
mov eax, 8
mov word [ebp - 0x2c8], ax
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x2c0], eax
mov eax, 9
mov word [ebp - 0x228], ax
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x2b8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10f
mov eax, dword [edx + 0x98]
mov dword [ebp - 0x2fc], edx
mov dword [esp], eax
call fcn.10008170
mov eax, dword [ebp - 0x2d0]
mov esi, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2fc]
sub esp, 4
cmp word [ebp - 0x2f2], 0
jne 0x1001c49f
lea eax, [ebp - 0x2ec]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.10010760
test eax, eax
js 0x1001c49f
mov eax, dword [ebp - 0x2ec]
test eax, eax
je 0x1001c49f
mov edx, dword [eax]
lea ecx, [ebp - 0x2f0]
mov dword [esp + 4], 0x1003ec78
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [edx]
mov ebx, eax
mov eax, dword [ebp - 0x2ec]
sub esp, 0xc
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
sub esp, 4
jmp 0x1001c383
mov dword [esp + 8], str.ERROR.HTM_0x_08x
jmp 0x1001c39f