Function at 0x10003c50
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10007004]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x228]
mov dword [esp + 0xc], ebx
test ebp, ebp
je 0x1000403b
test ebx, ebx
je 0x1000403b
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [esp + 0x1c]
movzx esi, ax
cmp ax, 0xc
jbe 0x10003ca5
sub esi, 0xc
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x2e]
push edx
mov word [esp + 0x30], cx
call sub.MSVCR90.dll_memset
movzx eax, word [esp + 0x2c]
movzx ecx, word [esp + 0x2a]
movzx edx, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x28]
push esi
push edx
push eax
push ecx
push str._d__02d__02d_:__02d:_02d:_02d_t
lea edx, [esp + 0x4c]
call fcn.100047c0
push 0x1000618c
lea edx, [esp + 0x38]
push ebp
push edx
mov dword [esp + 0x40], 0
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov eax, dword [esp + 0x40]
add esp, 0x34
test eax, eax
jne 0x10003d25
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100047e5
add esp, 0x21c
ret
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
push 0
push eax
call edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR90.dll_ftell]
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call edi
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
fldz
fld dword [esp + 0x258]
add esp, 0x20
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x10003ea3
fmul qword [0x10006220]
call fcn.100050a0
cmp esi, eax
jle 0x10003ea5
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003d90
sub eax, edx
sar eax, 1
xor ecx, ecx
add eax, 8
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100047da
mov ebx, eax
mov eax, ebp
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003dc2
sub eax, edx
sar eax, 1
xor ecx, ecx
mov edx, ebx
mov word [ebx + eax*2 + 0xe], cx
mov eax, ebp
sub edx, ebp
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10003de0
push 0x2e
push ebx
call dword [sym.imp.MSVCR90.dll_wcschr]
xor edx, edx
mov word [eax], dx
mov eax, ebx
add esp, 8
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10003e05
mov ecx, dword [str._backup]
mov dword [eax], ecx
mov edx, dword [0x100061fc]
mov dword [eax + 4], edx
mov ecx, dword [0x10006200]
mov dword [eax + 8], ecx
mov edx, dword [0x10006204]
push 0x2e
push ebp
mov dword [eax + 0xc], edx
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003e42
mov edi, ebx
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10003e54
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10003fef
push ebp
call esi
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov edi, dword [sym.imp.MSVCR90.dll_fseek]
mov ebx, dword [esp + 0x18]
add esp, 4
jmp 0x10003ea5
fstp st(0)
push 0x1000618c
lea eax, [esp + 0x14]
push ebp
push eax
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x10003fef
push 0
push 0
push eax
call edi
mov ecx, dword [esp + 0x1c]
push 2
push 0
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.MSVCR90.dll_ftell]
add esp, 0x1c
test eax, eax
jne 0x10003efc
mov eax, dword [esp + 0x10]
push eax
push str.INENC_n
call dword [sym.imp.MSVCR90.dll_fputws]
add esp, 8
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
mov eax, ebx
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003f20
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x28]
lea esi, [eax + 2]
jmp 0x10003f40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003f40
sub eax, esi
sar eax, 1
add eax, edx
xor ecx, ecx
lea eax, [eax*4 + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100047da
mov esi, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 2]
jmp 0x10003f80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003f80
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x28]
lea edi, [eax + 2]
jmp 0x10003fa0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003fa0
sub eax, edi
sar eax, 1
add eax, edx
mov edx, dword [esp + 0x14]
xor ecx, ecx
push edx
mov word [esi + eax*8], cx
lea eax, [esp + 0x2c]
push eax
push str._s_s
mov edx, esi
call fcn.10001020
push esi
call sym.pph.dll_EncryptString
push 0x1000618c
lea ecx, [esp + 0x24]
push ebp
push ecx
call dword [sym.imp.MSVCR90.dll__wfopen_s]
mov eax, dword [esp + 0x2c]
add esp, 0x1c
test eax, eax
jne 0x1000400a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100047e5
add esp, 0x21c
ret
mov edi, dword [sym.imp.MSVCR90.dll_fputws]
push eax
push esi
call edi
mov edx, dword [esp + 0x18]
push edx
push 0x10006214
call edi
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 0x18
mov eax, 1
jmp 0x10003ff1
mov ecx, dword [esp + 0x220]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100047e5
add esp, 0x21c
ret