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

Disassembly:
sub esp, 0x6f4
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0x6f0], eax
mov eax, dword [esp + 0x6f8]
push ebx
push ebp
mov ebp, dword [esp + 0x704]
push esi
push 0x208
xor ebx, ebx
lea ecx, [esp + 0x4f8]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebp
xor esi, esi
call fcn.00421360
lea edx, [esp + 0x500]
push edx
call fcn.00408630
lea eax, [esp + 0x504]
add esp, 0x10
dec eax
cmp byte [0x44e3c4], 7
jne 0x403870
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x403845
mov ecx, dword [str.LdxCab.ini]
mov edx, dword [0x43e860]
mov dword [eax], ecx
mov ecx, dword [0x43e864]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x40389d
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x403870
mov edx, dword [str.LdCab.ini]
mov ecx, dword [0x43e854]
mov dword [eax], edx
mov dx, word [0x43e858]
mov dword [eax + 4], ecx
mov cl, byte [0x43e85a]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
push edi
lea edx, [esp + 0x4f8]
push edx
push ebx
push str.FileTotal
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov dword [esp + 0x18], edi
cmp ebp, ebx
jne 0x4038d9
mov eax, dword [esp + 0x14]
push 0x43e830
push eax
call fcn.00420f7d
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x4038dd
mov dword [esp + 0x10], ebp
mov ebp, 1
cmp edi, ebp
jl 0x403b07
lea ebx, [ebx]
push 0x207
lea ecx, [esp + 0xed]
push ebx
push ecx
mov byte [esp + 0xf4], bl
call fcn.00421360
push 0x207
lea edx, [esp + 0x301]
push ebx
push edx
mov byte [esp + 0x308], bl
call fcn.00421360
push ebp
lea eax, [esp + 0xa0]
push str.File__d
push eax
call fcn.004214c5
add esp, 0x24
lea ecx, [esp + 0x4f8]
push ecx
push 0x64
lea edx, [esp + 0x28]
push edx
push 0x43e84c
push str.SrcFilePath
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xe8]
push ecx
call fcn.00408630
lea edi, [esp + 0xec]
add esp, 4
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403980
mov dx, word [0x43e584]
lea eax, [esp + 0x20]
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403998
lea edi, [esp + 0xe8]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4039b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x20]
and ecx, 3
push str.LdWaterMarkHook
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041fb80
add esp, 8
test eax, eax
jne 0x4039f8
lea ecx, [esp + 0x20]
push str.LdPrintMonitor
push ecx
call fcn.0041fb80
add esp, 8
test eax, eax
je 0x403aa3
lea edx, [esp + 0x2f0]
push edx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x2f0]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403a13
mov ax, word [0x43e584]
mov word [edi], ax
lea eax, [esp + 0x20]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403a30
lea edi, [esp + 0x2f0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x403a41
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]
push ebx
lea ecx, [esp + 0x2f4]
push ecx
lea edx, [esp + 0xf0]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x208
lea eax, [esp + 0xec]
push ebx
push eax
call fcn.00421360
add esp, 0xc
xor eax, eax
jmp 0x403a90
mov cl, byte [esp + eax + 0x2f0]
mov byte [esp + eax + 0xe8], cl
inc eax
cmp cl, bl
jne 0x403a90
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0xf0]
push edx
push eax
call fcn.00402e00
lea ecx, [esp + 0x30]
push str.LdWaterMarkHook
push ecx
mov esi, eax
call fcn.0041fb80
add esp, 0x18
test eax, eax
jne 0x403aea
lea edx, [esp + 0x20]
push str.LdPrintMonitor
push edx
call fcn.0041fb80
add esp, 8
test eax, eax
je 0x403af8
lea eax, [esp + 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, ebx
jne 0x403b07
inc ebp
cmp ebp, dword [esp + 0x18]
jle 0x4038f0
pop edi
cmp dword [esp + 0x18], ebx
jne 0x403b1f
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x403b1f
push eax
call fcn.00420934
add esp, 4
mov ecx, dword [esp + 0x6fc]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041f914
add esp, 0x6f4
ret