Function at 0x405090
Capabilities:
Clear file content
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x428e71
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x436ee0]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x436ee0]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c0]
mov edi, dword [esp + 0x1b8]
mov esi, dword [esp + 0x1bc]
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], eax
mov byte [esp + 0x30], al
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov byte [esp + 0x1b0], 1
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405120
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.004026b0
push 1
push 0x42a8a0
lea ecx, [esp + 0x34]
call fcn.00402790
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405150
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.00402790
mov eax, dword [esp + 0x30]
mov ebp, 0x10
cmp dword [esp + 0x44], ebp
jae 0x405177
lea eax, [esp + 0x30]
push eax
push str.Install_File:
mov ecx, ebx
call fcn.00401da0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebp
jae 0x405192
lea eax, [esp + 0x30]
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x40522c
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebp
jae 0x4051b9
lea eax, [esp + 0x30]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp eax, 0xffffffff
jne 0x405210
push 8
call fcn.0040e8cc
mov esi, eax
add esp, 4
test esi, esi
je 0x40547d
mov edx, 0x13
mov eax, 0x367
mov word [esi], dx
mov word [esi + 2], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x40547f
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x40521f
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.00404da0
jmp 0x405429
push esi
push edi
mov ecx, ebx
call fcn.00404ee0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebp
jae 0x405243
lea eax, [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebx
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp eax, 0xffffffff
jne 0x40541e
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x48]
push ecx
push esi
push edi
mov edi, dword [esp + 0x34]
mov ecx, edi
mov byte [esp + 0x1bc], 2
call fcn.004030e0
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x4052ab
lea eax, [esp + 0x4c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebx
mov esi, eax
mov ebp, esi
mov dword [esp + 0x18], ebp
cmp esi, 0xffffffff
jne 0x405324
push 8
call fcn.0040e8cc
mov esi, eax
add esp, 4
test esi, esi
je 0x4052f9
mov edx, 0x13
mov eax, 0x37d
mov word [esi], dx
mov word [esi + 2], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x4052fb
xor esi, esi
cmp dword [esp + 0x60], 0x10
mov dword [esp + 0x14], esi
mov byte [esp + 0x1b0], 1
jb 0x405483
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0040e8fb
add esp, 4
jmp 0x405483
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x405333
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call fcn.00404da0
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edi, dword [esp + 0x1c4]
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 0x20]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [esp + 0x1c]
je 0x405387
push 8
call fcn.0040e8cc
add esp, 4
test eax, eax
je 0x405381
push 0x387
push 0x13
mov ecx, eax
call fcn.004014a0
jmp 0x405383
xor eax, eax
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
push 0
or ebp, 0xffffffff
push str.Warning:__Reboot_required_to_complete_operation_
mov dword [esp + 0x20], ebp
mov dword [edx], 1
call fcn.00401da0
mov ecx, dword [esp + 0x30]
mov esi, 0x10
cmp dword [esp + 0x44], esi
jae 0x4053c1
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], esi
jae 0x4053cf
lea eax, [esp + 0x4c]
push 5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405401
push 8
call fcn.0040e8cc
add esp, 4
test eax, eax
je 0x4053fb
push 0x390
push 0x13
mov ecx, eax
call fcn.004014a0
jmp 0x4053fd
xor eax, eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x1b0], 1
cmp dword [esp + 0x60], esi
jb 0x405483
mov eax, dword [esp + 0x4c]
push eax
call fcn.0040e8fb
add esp, 4
jmp 0x405483
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [esp + 0x1c4]
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 0x20]
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [esp + 0x1c]
je 0x40549e
push 8
call fcn.0040e8cc
mov esi, eax
add esp, 4
test esi, esi
je 0x40547d
mov ecx, 0x13
mov edx, 0x3a1
mov word [esi], cx
mov word [esi + 2], dx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x40547f
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40549e
mov dword [esp + 0x20], eax
push 0x432610
lea eax, [esp + 0x24]
push eax
call fcn.0041977e
cmp ebp, 0xffffffff
je 0x4054aa
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], 0x10
jb 0x4054be
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040e8fb
add esp, 4
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00418f7f
add esp, 0x1a0
ret 0x10