Function at 0x404680
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.00425400
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 0x4046e0
sub eax, ecx
dec eax
cmp eax, ebx
jl 0x4046ff
mov edi, edi
cmp byte [esp + eax + 0x2f8], 0x5c
je 0x4046ff
sub eax, 1
jns 0x4046f0
mov byte [esp + eax + 0x2f8], bl
lea eax, [esp + 0x2f8]
dec eax
cmp byte [0x453d0c], 7
jne 0x404740
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x404717
mov ecx, dword [str.LdxCab.ini]
mov edx, dword [0x447b24]
mov dword [eax], ecx
mov ecx, dword [0x447b28]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x40476d
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x404740
mov edx, dword [str.LdCab.ini]
mov ecx, dword [0x447b30]
mov dword [eax], edx
mov dx, word [0x447b34]
mov dword [eax + 4], ecx
mov cl, byte [0x447b36]
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 0x4049e5
jmp 0x4047a2
xor ebx, ebx
push 0x207
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.00425400
add esp, 0xc
push 0x207
lea ecx, [esp + 0x505]
push ebx
push ecx
mov byte [esp + 0x50c], bl
call fcn.00425400
add esp, 0xc
push ebp
lea edx, [esp + 0x294]
push str.File__d
push edx
call fcn.00421fc5
add esp, 0xc
lea eax, [esp + 0x2f8]
push eax
push 0x64
lea ecx, [esp + 0x28]
push ecx
push 0x448410
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 0x404837
sub eax, ecx
dec eax
cmp eax, ebx
jl 0x404854
cmp byte [esp + eax + 0x88], 0x5c
je 0x404854
sub eax, 1
jns 0x404845
lea edi, [esp + 0x88]
mov byte [esp + eax + 0x88], bl
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x404863
mov cx, word [0x4478c8]
lea eax, [esp + 0x20]
mov word [edi], cx
mov edx, eax
jmp 0x404880
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404880
lea edi, [esp + 0x88]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404891
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.004233d0
add esp, 8
test eax, eax
jne 0x4048d9
lea eax, [esp + 0x20]
push str.LdPrintMonitor
push eax
call fcn.004233d0
add esp, 8
test eax, eax
je 0x404983
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 0x4048f4
mov dx, word [0x4478c8]
lea eax, [esp + 0x20]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404910
lea edi, [esp + 0x500]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404921
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.00425400
add esp, 0xc
xor eax, eax
jmp 0x404970
mov cl, byte [esp + eax + 0x500]
mov byte [esp + eax + 0x88], cl
inc eax
cmp cl, bl
jne 0x404970
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x88]
push 1
push eax
call fcn.00403d10
lea ecx, [esp + 0x28]
push str.LdWaterMarkHook
push ecx
mov esi, eax
call fcn.004233d0
add esp, 0x10
test eax, eax
jne 0x4049c8
lea edx, [esp + 0x20]
push str.LdPrintMonitor
push edx
call fcn.004233d0
add esp, 8
test eax, eax
je 0x4049d6
lea eax, [esp + 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
jne 0x4049e5
inc ebp
cmp ebp, dword [esp + 0x1c]
jle 0x4047a0
mov ecx, dword [esp + 0x70c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00421f65
add esp, 0x700
ret