Function at 0x100394e
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x100d008]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
je 0x1003b5c
cmp esi, ebx
je 0x1003b5c
lea eax, [ebp - 0x5c]
push eax
push 4
call fcn.01001b93
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x1001720
push esi
push dword [ebp + 8]
call fcn.01003623
test eax, eax
jne 0x10039bc
push 0x20000
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100b4f9
xor ebx, ebx
inc ebx
jmp 0x1003b4f
cmp dword [ebp - 0x64], 1
jne 0x10039ce
push 4
call fcn.01001f2f
jmp 0x1003b4f
lea eax, [ebp - 0x5c]
push eax
call fcn.01002013
test eax, eax
jne 0x10039e9
push 0xffffffffffffffff
call fcn.01002093
push 0x20001
jmp 0x10039a6
lea eax, [ebp - 0x60]
push eax
push 0x20000
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1003b18
push 2
push 0x10016fc
push dword [ebp - 0x24]
call fcn.010038cb
mov esi, eax
cmp esi, ebx
jne 0x1003b0f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
push 4
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x60]
call edi
mov esi, eax
cmp esi, 0x57
jne 0x1003a53
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
mov esi, eax
cmp esi, 0xb7
jne 0x1003b06
push ebx
push 0xcf
call fcn.0100b4a7
push 1
push 0xce
mov esi, eax
call fcn.0100b4a7
mov dword [ebp - 0x64], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x64]
push dword [ebp - 0x18]
push esi
call fcn.01001c89
cmp eax, 2
jg 0x1003a7b
cmp eax, 1
je 0x1003a9b
mov esi, 0x4c7
jmp 0x1003b0e
mov eax, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x14], eax
call fcn.010023e5
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1003ab8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1003b06
push 4
push ebx
push eax
push dword [ebp - 0x60]
call edi
mov esi, eax
cmp esi, 0x57
jne 0x1003ae0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
mov esi, eax
cmp esi, ebx
jne 0x1003afd
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1003afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 0x57
jne 0x1003b0e
add esi, 0x77
pop edi
lea eax, [ebp - 0x60]
push eax
call fcn.01001b65
push esi
call fcn.01002093
cmp esi, ebx
je 0x1003b3c
cmp esi, 0x4c7
je 0x1003b3c
mov eax, dword [sym.imp.msvcrt.dll__iob]
xor ebx, ebx
inc ebx
push 0x20001
add eax, 0x40
jmp 0x1003b49
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x20
push eax
call fcn.0100b4f9
lea eax, [ebp - 0x5c]
push eax
call fcn.01001c25
mov eax, ebx
jmp 0x1003b75
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01009740
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010092ae
leave
ret 8