Function at 0x10411e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov eax, dword [0x10a9398]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], 0x51
mov dword [ebp - 0xc], 0x30db
movzx ecx, word [0x1065050]
movzx edx, word [0x1065052]
sub ecx, edx
cmp ecx, 0x1ff
jne 0x1041257
mov eax, dword [0x106507c]
mov ecx, dword [0x1065034]
lea edx, [ecx + eax + 0x1a]
mov dword [0x106507c], edx
mov eax, dword [0x106507c]
imul eax, eax, 0x46
xor ecx, ecx
add eax, dword [0x1065038]
mov edx, dword [0x106503c]
adc edx, ecx
mov ecx, dword [0x1065034]
xor esi, esi
sub ecx, eax
sbb esi, edx
mov dword [0x1065034], ecx
jmp 0x104128c
mov edx, dword [0x106507c]
imul edx, edx, 0x16
xor eax, eax
add edx, dword [0x1065038]
mov ecx, dword [0x106503c]
adc ecx, eax
mov word [0x1065048], dx
mov edx, dword [0x106507c]
mov eax, dword [0x1065034]
lea ecx, [eax + edx + 0x1a]
mov dword [0x106507c], ecx
movzx edx, byte [0x1065078]
imul edx, edx, 0x46
add edx, 0x40536
xor eax, eax
mov ecx, dword [0x1065038]
sub ecx, edx
mov edx, dword [0x106503c]
sbb edx, eax
mov dword [0x1065038], ecx
mov dword [0x106503c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1065040]
lea edx, [ecx + eax + 0x1a]
xor eax, eax
mov dword [0x1065038], edx
mov dword [0x106503c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [0x1065040]
lea eax, [edx + ecx - 4]
xor ecx, ecx
mov dword [0x1065038], eax
mov dword [0x106503c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x1065040]
lea edx, [ecx + eax + 0x1a]
xor eax, eax
mov dword [0x1065038], edx
mov dword [0x106503c], eax
movzx ecx, word [0x1065062]
cmp ecx, 0xc0e
jne 0x1041345
movzx edx, word [str.t_]
add edx, dword [0x1065040]
mov dword [0x1065040], edx
mov eax, dword [0x1065040]
mov ecx, dword [0x1065040]
lea edx, [ecx + eax - 4]
mov dword [0x1065034], edx
mov eax, dword [0x1065040]
xor ecx, ecx
push ecx
push eax
mov edx, dword [0x106503c]
push edx
mov eax, dword [0x1065038]
push eax
call fcn.0100aa90
mov ecx, dword [ebp - 0x10]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [0x1065040], eax
push 0x1065b28
push 0x66e
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [0x1065040], eax
movzx edx, byte [0x1065078]
imul edx, edx, 0x13234
add edx, dword [ebp - 0x10]
mov byte [0x1065078], dl
mov eax, dword [ebp + 0xc]
add eax, 0x16a5e
xor ecx, ecx
add eax, dword [0x1065038]
adc ecx, dword [0x106503c]
mov edx, dword [0x1065040]
xor esi, esi
sub eax, edx
sbb ecx, esi
mov edx, dword [0x1065040]
xor esi, esi
add edx, eax
adc esi, ecx
mov dword [0x1065040], edx
mov eax, dword [ebp - 0x10]
sub eax, 7
sub eax, dword [ebp - 0x10]
mov byte [0x1065078], al
push 0x10a9394
mov ecx, dword [0x1065098]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx ecx, byte [0x1065078]
imul ecx, ecx, 0x46
add ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [0x1065038]
sub eax, ecx
mov ecx, dword [0x106503c]
sbb ecx, edx
mov dword [0x1065038], eax
mov dword [0x106503c], ecx
mov dword [ebp - 4], 2
jmp 0x1041430
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x25
jge 0x10414ba
movzx eax, word [0x1065054]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [0x1065038]
cmp eax, dword [ebp - 0x18]
jne 0x104145f
mov ecx, dword [0x106503c]
cmp ecx, dword [ebp - 0x14]
jne 0x104145f
jmp 0x1041427
mov edx, dword [ebp - 4]
movzx eax, word [edx*2 + 0x1065044]
imul eax, dword [0x1065040]
mov dword [0x1065040], eax
mov ecx, dword [0x1065040]
sub ecx, 7
sub ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [0x1065038], ecx
mov dword [0x106503c], edx
movzx eax, word [0x1065058]
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [0x1065038]
cmp eax, dword [ebp - 0x20]
jne 0x10414b5
mov ecx, dword [0x106503c]
cmp ecx, dword [ebp - 0x1c]
jne 0x10414b5
jmp 0x10414ba
jmp 0x1041427
movzx edx, byte [0x1065078]
imul edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x10]
mov byte [0x1065078], dl
movzx eax, byte [0x1065078]
mov ecx, dword [ebp - 0x10]
lea edx, [eax + ecx + 0x3c]
xor eax, eax
add edx, dword [0x1065038]
mov ecx, dword [0x106503c]
adc ecx, eax
mov dword [0x1065038], edx
mov dword [0x106503c], ecx
mov dword [ebp - 4], 0x27
jmp 0x104150a
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jle 0x1041594
movzx eax, word [0x1065054]
cmp dword [ebp + 0xc], eax
jne 0x1041522
jmp 0x1041501
mov esi, dword [ebp + 0xc]
xor edi, edi
push 0
push 0x13234
mov ecx, dword [0x106503c]
push ecx
mov edx, dword [0x1065038]
push edx
call fcn.0100aa90
add esi, eax
adc edi, edx
mov dword [0x1065038], esi
mov dword [0x106503c], edi
mov eax, dword [ebp - 4]
movzx ecx, word [eax*2 + 0x1065044]
sub ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov word [edx*2 + 0x1065044], cx
mov esi, dword [ebp + 0xc]
xor edi, edi
push 0
push 0x16
mov eax, dword [0x106503c]
push eax
mov ecx, dword [0x1065038]
push ecx
call fcn.0100aa90
add esi, eax
adc edi, edx
mov dword [0x1065040], esi
jmp 0x1041501
jmp dword [ebp - 8]