Function at 0x43e464
Capabilities:
Clear file content
Write file on windows

Disassembly:
push 0x54
mov eax, 0x48a597
call fcn.0047dc56
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x18], ebx
or dword [ebp - 4], 0xffffffff
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x43e6a8
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x43e6a8
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.00462c75
mov esi, eax
test esi, esi
js 0x43e6ad
mov edx, dword [ebp - 0x24]
lea esi, [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x60]
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004600a0
mov esi, eax
test esi, esi
js 0x43e6ad
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x43e51c
mov ecx, dword [eax]
test ecx, ecx
je 0x43e51c
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x43e51c
sub esp, 0x10
mov esi, eax
mov edi, esp
lea eax, [ebp - 0x20]
push 1
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x18]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00462ab7
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
jns 0x43e583
mov esi, dword [ebp - 0x1c]
test ebx, ebx
je 0x43e52b
push ebx
call fcn.004350f6
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x43e6a8
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x43e6a8
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.00462c75
mov esi, eax
test esi, esi
js 0x43e6ad
mov ecx, dword [ebp - 0x28]
lea esi, [ebp - 0x4c]
sub esp, 0x10
lea eax, [ebp - 0x20]
mov edi, esp
push 0
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x18]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00462ab7
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
js 0x43e6ad
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x38]
test eax, eax
je 0x43e592
cmp eax, 0xffffffff
jne 0x43e594
xor eax, eax
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43e5ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov esi, eax
jmp 0x43e6ad
mov eax, dword [edi + 0x38]
test eax, eax
je 0x43e5c6
cmp eax, 0xffffffff
jne 0x43e5c8
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x43e5a7
mov eax, dword [edi + 0x38]
test ebx, ebx
sete byte [ebp - 0x11]
test eax, eax
je 0x43e5e5
cmp eax, 0xffffffff
jne 0x43e5e7
xor eax, eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43e5a7
mov eax, dword [edi + 0x38]
test eax, eax
je 0x43e608
cmp eax, 0xffffffff
jne 0x43e60a
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x43e5a7
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x43e621
cmp eax, 0xffffffff
jne 0x43e623
xor eax, eax
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x43e5a7
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x43e646
cmp eax, 0xffffffff
jne 0x43e648
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x43e5a7
cmp byte [ebp - 0x11], 0
je 0x43e661
xor ecx, ecx
jmp 0x43e663
mov ecx, ebx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x43e66f
cmp eax, 0xffffffff
jne 0x43e671
xor eax, eax
push 0
lea edx, [ebp - 0x2c]
push edx
push dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43e5a7
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x43e696
cmp eax, 0xffffffff
jne 0x43e698
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x43e6b3
jmp 0x43e5a7
mov esi, 0x80070057
push esi
call fcn.004321e3
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x43e705
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
test eax, eax
je 0x43e6c6
dec dword [eax + 0xc]
cmp dword [ebp - 0x5c], 0
je 0x43e6e6
push dword [ebp - 0x5c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x14
pop ecx
lea eax, [ebp - 0x60]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x43e6fc
push esi
call fcn.00432150
mov dword [ebp - 4], 1
test ebx, ebx
je 0x43e71c
push ebx
call fcn.004350f6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0047dc27
ret