Function at 0x4589d0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x63d650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov word [esp + 0x14], bx
mov eax, dword [0x6fca48]
mov dword [esp + 0x48], ebx
cmp eax, ebx
jne 0x458a16
mov eax, 0x6fca4c
mov ecx, str._sidmfc.dat
push ebp
push esi
push edi
test ecx, ecx
je 0x458af1
cmp eax, ebx
je 0x458af1
push eax
lea ecx, [esp + 0x44]
call fcn.00401ee0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 1
call fcn.00401070
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x38], bx
push ebx
push str._sidmfc.dat
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 2
call fcn.004027e0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x458ad6
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 1
call fcn.00401070
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], bl
call fcn.00401070
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x2c], bx
mov eax, dword [0x6fca20]
mov byte [esp + 0x54], 3
cmp eax, ebx
jne 0x458b11
mov eax, 0x6fca24
mov edx, str._sidmfc.dat
test edx, edx
je 0x458be6
cmp eax, ebx
je 0x458be6
push eax
lea ecx, [esp + 0x44]
call fcn.00401ee0
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 4
call fcn.00401070
lea ecx, [esp + 0x34]
call fcn.004027c0
push ebx
push str._sidmfc.dat
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 5
call fcn.004027e0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x458bca
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
lea ecx, [esp + 0x38]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 4
call fcn.00401070
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 3
call fcn.00401070
mov eax, dword [esp + 0x1c]
pop edi
pop esi
cmp eax, ebx
pop ebp
jne 0x458bf5
lea eax, [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.004587c0
add esp, 8
test eax, eax
je 0x458c31
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x458c13
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push ecx
push eax
call fcn.004587c0
add esp, 8
test eax, eax
je 0x458c77
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp edx, eax
jle 0x458c77
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 1
cmp eax, ebx
je 0x458c77
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x458c4d
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov ecx, eax
jne 0x458c62
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x458c6e
lea eax, [esp + 0x20]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], bl
call fcn.00401070
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 4]
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret