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

Disassembly:
push 0xffffffffffffffff
push 0x43ee96
mov eax, dword fs:[0]
push eax
sub esp, 0x684
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x698]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov ebx, dword [esp + 0x6a8]
mov dword [esp + 0x30], ebx
call fcn.00413be1
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x407316
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x6a0], ebp
call fcn.00413be1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x407347
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x10e
lea ecx, [esp + 0x178]
push ebp
push ecx
mov byte [esp + 0x6ac], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebp
call fcn.004253a0
add esp, 0xc
push 0x124
lea edx, [esp + 0x50]
push ebp
push edx
call fcn.004253a0
add esp, 0xc
push 0x208
lea eax, [esp + 0x490]
push ebp
push eax
call fcn.004253a0
lea ecx, [esp + 0x498]
add esp, 0xc
mov eax, esi
sub ecx, esi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x4073b5
lea eax, [esp + 0x48c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4073c7
mov ecx, dword [str.LdCab.ldind]
mov edx, dword [0x447ec8]
mov dword [eax], ecx
mov ecx, dword [0x447ecc]
mov dword [eax + 4], edx
mov dl, byte [0x447ed0]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x48c]
push 0x447ed4
push ecx
call fcn.004228cf
mov ebp, eax
add esp, 8
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x4074a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFileSummaryToLdind_fail_in_fopen_error_code:__d
lea edx, [esp + 0x24]
push edx
call fcn.00409910
mov esi, dword [esp + 0x28]
add esp, 0xc
push 0
push esi
push 0x453d11
call fcn.0040d890
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x6a0], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407471
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6a0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40749c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x407827
mov dx, word [0x447f14]
mov ecx, dword [str.LDIND]
mov word [esp + 0x178], dx
mov edx, 2
mov eax, 0x124
mov word [esp + 0x17e], dx
mov dword [esp + 0x174], ecx
xor ecx, ecx
lea edx, [esp + 0x180]
mov word [esp + 0x17a], ax
mov word [esp + 0x17c], cx
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4074f0
mov eax, dword [ebx + 0xc]
push ebp
push 1
mov word [esp + 0x288], ax
lea eax, [esp + 0x17c]
push 0x10e
push eax
call fcn.00422fbc
mov ebx, dword [ebx + 4]
add esp, 0x10
test ebx, ebx
je 0x407779
push 0x124
lea ecx, [esp + 0x50]
push 0
push ecx
call fcn.004253a0
add esp, 0xc
push 0x208
lea edx, [esp + 0x288]
push 0
push edx
call fcn.004253a0
add esp, 0xc
mov eax, ebx
test ebx, ebx
je 0x4077b3
mov ecx, dword [eax + 8]
mov esi, dword [esp + 0x18]
mov ebx, dword [ebx]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4075b7
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4075a9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4075a9
push eax
call fcn.00409c20
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4075a0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x4075b7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00409f10
mov eax, dword [esp + 0x6ac]
lea edx, [esp + 0x284]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4075c7
lea edi, [esp + 0x284]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4075e0
mov cx, word [0x447968]
mov eax, dword [esp + 0x18]
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4075f8
lea edi, [esp + 0x284]
sub eax, ecx
mov esi, ecx
dec edi
jmp 0x407610
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407610
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x284]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x407643
or dword [esp + 0x154], 0x80000000
or dword [esp + 0x154], 2
push 0
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
je 0x4076a3
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40769c
lea ecx, [esp + 0x14c]
test ecx, ecx
je 0x40769c
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14c], edx
mov dword [esp + 0x150], eax
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x284]
push 0x447ae8
push eax
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], edx
xor edi, edi
xor ebp, ebp
call fcn.004228cf
mov esi, eax
add esp, 8
test esi, esi
je 0x4076f8
push 2
push ebp
push ebp
push esi
call fcn.00422a75
push esi
call fcn.00422e10
add esp, 0x14
push esi
mov edi, eax
mov ebp, edx
call fcn.0042295d
add esp, 4
mov dword [esp + 0x158], edi
mov dword [esp + 0x15c], ebp
cmp edi, 0xffffffff
jne 0x407713
cmp ebp, edi
je 0x4077b8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x4c]
mov dword [esp + 0x160], edi
mov dword [esp + 0x164], ebp
sub edx, eax
jmp 0x407730
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407730
mov ecx, dword [esp + 0x2c]
push ecx
push 1
lea edx, [esp + 0x54]
push 0x124
push edx
call fcn.00422fbc
inc dword [esp + 0x30]
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x16c]
add esp, 0x10
add dword [esp + 0x24], eax
adc dword [esp + 0x28], ecx
test ebx, ebx
jne 0x407528
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
cmp ecx, dword [edx + 0xc]
je 0x4077c9
push str.WriteFileSummaryToLdind_failed_in_iHandFile_var
lea ecx, [esp + 0x20]
call fcn.00409fc0
mov esi, dword [esp + 0x1c]
push 0
push esi
push 0x453d11
call fcn.0040d890
push ebp
call fcn.0042295d
add esp, 4
jmp 0x40744d
call fcn.0041420f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WriteFileSummaryToLdind_fail_in_GetFileSize:__d
jmp 0x40742f
push ebp
call fcn.0042295d
mov byte [esp + 0x6a4], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x6a0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407825
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.00421f05
add esp, 0x690
ret