Function at 0x404660
Capabilities:
Copy file
Delete file
Get common file path
Read .ini file

Disassembly:
sub esp, 0x700
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x6fc], eax
mov eax, dword [esp + 0x704]
push ebx
push ebp
push esi
push edi
push 0x208
xor ebx, ebx
lea edx, [esp + 0x2fc]
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
xor esi, esi
call fcn.00424c40
add esp, 0xc
push 0x208
lea eax, [esp + 0x2fc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2f8]
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4046c0
sub eax, ecx
dec eax
cmp eax, ebx
jl 0x4046df
mov edi, edi
cmp byte [esp + eax + 0x2f8], 0x5c
je 0x4046df
sub eax, 1
jns 0x4046d0
mov byte [esp + eax + 0x2f8], bl
lea eax, [esp + 0x2f8]
dec eax
cmp byte [0x453d04], 7
jne 0x404720
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4046f7
mov ecx, dword [str.LdxCab.ini]
mov edx, dword [0x447b60]
mov dword [eax], ecx
mov ecx, dword [0x447b64]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x40474d
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x404720
mov edx, dword [str.LdCab.ini]
mov ecx, dword [0x447b6c]
mov dword [eax], edx
mov dx, word [0x447b70]
mov dword [eax + 4], ecx
mov cl, byte [0x447b72]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
lea edx, [esp + 0x2f8]
push edx
push ebx
push str.FileTotal
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x1c], eax
jl 0x4049c5
jmp 0x404782
xor ebx, ebx
push 0x207
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.00424c40
add esp, 0xc
push 0x207
lea ecx, [esp + 0x505]
push ebx
push ecx
mov byte [esp + 0x50c], bl
call fcn.00424c40
add esp, 0xc
push ebp
lea edx, [esp + 0x294]
push str.File__d
push edx
call fcn.004217fd
add esp, 0xc
lea eax, [esp + 0x2f8]
push eax
push 0x64
lea ecx, [esp + 0x28]
push ecx
push 0x448368
push str.SrcFilePath
lea edx, [esp + 0x2a4]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x208
lea eax, [esp + 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404817
sub eax, ecx
dec eax
cmp eax, ebx
jl 0x404834
cmp byte [esp + eax + 0x88], 0x5c
je 0x404834
sub eax, 1
jns 0x404825
lea edi, [esp + 0x88]
mov byte [esp + eax + 0x88], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x404843
mov cx, word [0x4478d8]
lea eax, [esp + 0x20]
mov word [edi], cx
mov edx, eax
jmp 0x404860
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404860
lea edi, [esp + 0x88]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404871
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x20]
and ecx, 3
push str.LdWaterMarkHook
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00422c00
add esp, 8
test eax, eax
jne 0x4048b9
lea eax, [esp + 0x20]
push str.LdPrintMonitor
push eax
call fcn.00422c00
add esp, 8
test eax, eax
je 0x404963
lea ecx, [esp + 0x500]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x500]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4048d4
mov dx, word [0x4478d8]
lea eax, [esp + 0x20]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4048f0
lea edi, [esp + 0x500]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404901
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
lea eax, [esp + 0x504]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x208
lea edx, [esp + 0x8c]
push ebx
push edx
call fcn.00424c40
add esp, 0xc
xor eax, eax
jmp 0x404950
mov cl, byte [esp + eax + 0x500]
mov byte [esp + eax + 0x88], cl
inc eax
cmp cl, bl
jne 0x404950
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x88]
push 1
push eax
call fcn.00403cf0
lea ecx, [esp + 0x28]
push str.LdWaterMarkHook
push ecx
mov esi, eax
call fcn.00422c00
add esp, 0x10
test eax, eax
jne 0x4049a8
lea edx, [esp + 0x20]
push str.LdPrintMonitor
push edx
call fcn.00422c00
add esp, 8
test eax, eax
je 0x4049b6
lea eax, [esp + 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
jne 0x4049c5
inc ebp
cmp ebp, dword [esp + 0x1c]
jle 0x404780
mov ecx, dword [esp + 0x70c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042179d
add esp, 0x700
ret