Function at 0x406fc0
Capabilities:
Delete file
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43e4a6
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x690]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov ebx, dword [esp + 0x6a0]
mov dword [esp + 0x30], ebx
call fcn.004133f1
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x407026
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x698], ebp
call fcn.004133f1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x407057
push 0x80004005
call fcn.00409d60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x10e
lea ecx, [esp + 0x170]
push ebp
push ecx
mov byte [esp + 0x6a4], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
call fcn.00424c40
add esp, 0xc
push 0x118
lea edx, [esp + 0x58]
push 0
push edx
call fcn.00424c40
add esp, 0xc
push 0x208
lea eax, [esp + 0x488]
push 0
push eax
call fcn.00424c40
lea ecx, [esp + 0x490]
add esp, 0xc
mov eax, esi
sub ecx, esi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x4070c7
lea eax, [esp + 0x484]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4070e0
mov ecx, dword [str.LdCab.ldind]
mov edx, dword [0x447a54]
mov dword [eax], ecx
mov ecx, dword [0x447a58]
mov dword [eax + 4], edx
mov dl, byte [0x447a5c]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x484]
push 0x447a60
push ecx
call fcn.00422167
mov esi, eax
add esp, 8
mov dword [esp + 0x20], esi
test esi, esi
jne 0x4071b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push str.WriteFileSummaryToLdind_fail_in_fopen_error_code:__d
push edx
call fcn.00409670
add esp, 0xc
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0x453d09
call fcn.0040d390
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x698], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x698], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x407549
mov dx, word [0x447a68]
mov ecx, dword [str.LDIND]
mov word [esp + 0x170], dx
mov edx, 1
mov eax, 0x10e
mov word [esp + 0x176], dx
mov dword [esp + 0x16c], ecx
xor ecx, ecx
lea edx, [esp + 0x178]
mov word [esp + 0x172], ax
mov word [esp + 0x174], cx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407202
mov eax, dword [ebx + 0xc]
push esi
push 1
mov word [esp + 0x280], ax
lea eax, [esp + 0x174]
push 0x10e
push eax
call fcn.004223d3
mov ebx, dword [ebx + 4]
add esp, 0x10
test ebx, ebx
je 0x407464
push 0x118
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.00424c40
add esp, 0xc
push 0x208
lea edx, [esp + 0x280]
push 0
push edx
call fcn.00424c40
add esp, 0xc
mov eax, ebx
test ebx, ebx
je 0x4074a2
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0x14]
mov ebx, dword [ebx]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4072cd
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4072bf
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4072bf
push eax
call fcn.00409980
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4072b2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x24]
jmp 0x4072cd
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00409c70
mov eax, dword [esp + 0x6a4]
lea edx, [esp + 0x27c]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4072e0
lea edi, [esp + 0x27c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4072f2
mov cx, word [0x4478d8]
mov eax, dword [esp + 0x14]
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407310
lea edi, [esp + 0x27c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407323
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x27c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x407356
or dword [esp + 0x160], 0x80000000
or dword [esp + 0x160], 2
push 0
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
je 0x4073b6
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4073af
lea ecx, [esp + 0x158]
test ecx, ecx
je 0x4073af
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x158], edx
mov dword [esp + 0x15c], eax
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
lea ecx, [esp + 0x27c]
push 0x447a7c
xor edi, edi
push ecx
mov dword [esp + 0x16c], ebp
mov dword [esp + 0x48], edi
call fcn.00422167
mov esi, eax
add esp, 8
test esi, esi
je 0x407400
push 2
push edi
push edi
push esi
call fcn.00422bac
push esi
call fcn.004227a1
add esp, 0x14
push esi
mov edi, eax
mov dword [esp + 0x44], edx
call fcn.004221f5
add esp, 4
mov dword [esp + 0x154], edi
cmp edi, 0xffffffff
je 0x4074a7
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x54]
mov dword [esp + 0x168], edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407421
mov edx, dword [esp + 0x20]
push edx
push 1
lea eax, [esp + 0x5c]
push 0x118
push eax
call fcn.004223d3
inc dword [esp + 0x2c]
add esp, 0x10
add ebp, dword [esp + 0x154]
adc dword [esp + 0x28], 0
mov dword [esp + 0x24], ebp
test ebx, ebx
jne 0x40723a
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 0xc]
je 0x4074eb
push str.WriteFileSummaryToLdind_failed_in_iHandFile_var
lea ecx, [esp + 0x1c]
call fcn.00409d20
mov esi, dword [esp + 0x18]
push 0
push esi
push 0x453d09
call fcn.0040d390
mov eax, dword [esp + 0x20]
push eax
call fcn.004221f5
add esp, 4
jmp 0x407161
call fcn.00413a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push str.WriteFileSummaryToLdind_fail_in_GetFileSize:__d
push ecx
call fcn.00409670
mov esi, dword [esp + 0x24]
add esp, 0xc
push 0
push esi
push 0x453d09
call fcn.0040d390
lea eax, [esi - 0x10]
mov byte [esp + 0x698], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x407510
push esi
call fcn.004221f5
mov byte [esp + 0x69c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40751c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x698], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407547
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x690]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.0042179d
add esp, 0x688
ret