Function at 0x1003d877
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
mov eax, 0x10059433
call fcn.10052270
mov eax, 0x1524
call fcn.100522c0
push ebx
push esi
push edi
lea eax, [ebp - 0x52c]
mov dword [ebp - 4], 3
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x52c]
lea ecx, [ebp - 0x10]
push eax
call fcn.100034da
lea eax, [ebp - 0x1c]
push 1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.1003e475
mov eax, dword [eax]
mov esi, 0x10071574
push esi
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
mov byte [ebp - 4], 4
pop ecx
test eax, eax
lea ecx, [ebp - 0x1c]
setne bl
call fcn.1000349d
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
je 0x1003d90b
mov eax, esi
test eax, eax
je 0x1003d901
push esi
call ebx
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10009b8e
mov esi, str.temp.js
mov eax, esi
test eax, eax
je 0x1003d919
push esi
call ebx
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10009b8e
push 0x10076b40
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
pop ecx
je 0x1003dafb
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10070ee4
lea eax, [ebp - 0x12c]
push 0x104
push eax
call fcn.10001f81
add esp, 0x10
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x1530]
push 3
push eax
call fcn.1003cb0c
cmp dword [ebp - 0x530], 0
mov byte [ebp - 4], 6
je 0x1003daec
lea ecx, [ebp - 0x1530]
mov dword [ebp - 0x1c], 1
call fcn.1003cb8a
test al, al
je 0x1003dab0
mov edi, dword [sym.imp.MSVCRT.dll_fputs]
mov esi, 0x100737a0
lea eax, [ebp - 0x1530]
lea ecx, [ebp - 0x14]
push eax
call fcn.100034da
push 0
lea ecx, [ebp - 0x14]
push dword [ebp + 0x10]
mov byte [ebp - 4], 7
call fcn.100038ba
cmp eax, 0xffffffff
je 0x1003da75
push 0
lea ecx, [ebp - 0x14]
push dword [ebp + 0x14]
call fcn.100038ba
cmp eax, 0xffffffff
jne 0x1003daa0
lea eax, [ebp + 0x10]
push 0x10076b50
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10018299
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100164a2
push 0x10076b4c
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 9
push eax
call fcn.10018299
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.10003640
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
call fcn.1000349d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.1000349d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.1000349d
mov eax, esi
test eax, eax
je 0x1003da6b
push esi
call ebx
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.10009b8e
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call edi
pop ecx
mov byte [ebp - 4], 6
pop ecx
lea ecx, [ebp - 0x14]
call fcn.1000349d
lea ecx, [ebp - 0x1530]
call fcn.1003cb8a
test al, al
jne 0x1003d9bb
jmp 0x1003dab0
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.1000349d
lea ecx, [ebp - 0x1530]
call fcn.1003cb6c
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fflush]
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fclose]
cmp dword [ebp - 0x1c], 0
pop ecx
pop ecx
je 0x1003dae3
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1530]
mov byte [ebp - 4], 4
call fcn.1003cb6c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.1000349d
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.1000349d
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.1000349d
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.1000349d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.1000349d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10