Function at 0x42edd0
Capabilities:
Clear file content

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00406220
mov eax, dword [ebx + 0x70]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebx + 0x70]
mov word [eax + 4], 3
mov ecx, dword [ebx + 0x70]
mov word [ecx + 6], 0
mov ecx, dword [ebx + 0x70]
mov eax, dword [esp + 0x10]
add ecx, 8
lea edx, [eax + 8]
mov esi, dword [edx]
mov dword [ecx], esi
mov esi, dword [edx + 4]
mov dword [ecx + 4], esi
mov esi, dword [edx + 8]
mov dword [ecx + 8], esi
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x48]
mov ecx, dword [ebx + 0x70]
mov dword [ecx + 0x18], edx
mov eax, dword [eax + 0x4c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebx + 0x70]
mov edx, dword [0x5780d4]
add ecx, 0x20
mov dword [ecx], edx
mov eax, dword [0x5780d8]
mov dword [ecx + 4], eax
mov edx, dword [0x5780dc]
mov dword [ecx + 8], edx
mov eax, dword [0x5780e0]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebx + 0x70]
mov dx, word [0x578830]
mov word [ecx + 0x30], dx
mov edi, dword [ebx + 0x70]
add edi, 0x32
xor eax, eax
mov ecx, 0x82
rep stosd dword es:[edi], eax
mov eax, dword [0x578830]
mov edi, dword [ebx + 0x70]
mov esi, dword [0x57882c]
add edi, 0x32
lea ecx, [eax + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x70]
add edi, 0x23a
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 0x70]
add edi, 0x2ba
mov ecx, 0x351
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x70]
mov dword [ecx + 0x1000], eax
mov dword [ecx + 0x1004], 0
mov edx, dword [ebx + 0x70]
mov dword [edx + 0x1008], 0
mov ecx, dword [ebx + 0x74]
mov edi, dword [ebx + 0x70]
sub ecx, 0x100c
xor eax, eax
add edi, 0x100c
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x70]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x3c]
mov ecx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x84]
sub eax, ecx
mov edx, dword [ebx + 0x70]
mov edi, dword [ebx + 0x74]
lea esi, [ebx + 0x78]
mov dword [esp + 0x14], edx
je 0x42ef42
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.004176e0
add esp, 0xc
test al, al
je 0x42efe5
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x40000
mov eax, dword [esi]
push 0
push 0
push 0
push eax
call fcn.004175f0
add esp, 0x10
test al, al
je 0x42efe5
mov ecx, dword [esp + 0x14]
push edi
push ecx
mov ecx, esi
call fcn.0042e7a0
test al, al
je 0x42efe5
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub eax, ecx
je 0x42ef94
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.004176e0
add esp, 0xc
test al, al
je 0x42efe5
mov edx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x40000
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x42efe5
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub eax, ecx
je 0x42efc9
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.004176e0
add esp, 0xc
test al, al
je 0x42efe5
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x40000
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x42efe5
pop edi
pop esi
mov dword [ebx + 0x6c], 3
mov al, 1
pop ebx
ret 8
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub eax, ecx
lea edi, [esi + 8]
je 0x42f00f
mov edx, dword [esi]
push eax
push ecx
push edx
call fcn.004176e0
add esp, 0xc
test al, al
je 0x42f00f
mov ecx, dword [edi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0x40000
mov ecx, edi
call fcn.0040eeb0
mov eax, dword [esi]
test eax, eax
je 0x42f028
cmp eax, 0xffffffff
je 0x42f028
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi], 0
pop esi
mov dword [ebx + 0x6c], 0xffffffff
xor al, al
pop ebx
ret 8