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

Disassembly:
push 0xffffffffffffffff
push 0x4187c1
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4212d0]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c0]
mov ebp, dword [esp + 0x1bc]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], ebp
mov esi, ecx
mov edi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], eax
mov byte [esp + 0x30], al
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov byte [esp + 0x1b4], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402247
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.00403a90
push 1
push 0x41e460
lea eax, [esp + 0x34]
call fcn.00402ad0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402270
sub eax, edx
push eax
push esi
lea eax, [esp + 0x34]
call fcn.00402ad0
mov eax, dword [esp + 0x30]
mov ebx, 0x10
cmp dword [esp + 0x44], ebx
jae 0x402297
lea eax, [esp + 0x30]
push eax
push ebp
mov ecx, str.Install_File:
call fcn.004029e0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x4022b1
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 0x402345
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x4022d4
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 ebx, eax
mov dword [esp + 0x18], ebx
cmp eax, 0xffffffff
jne 0x40232b
push 8
call fcn.0040eee1
mov esi, eax
add esp, 4
test esi, esi
je 0x4025ad
mov edx, 0x13
mov eax, 0x2ac
mov word [esi], dx
mov word [esi + 2], ax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x4025af
cmp dword [esp + 0x44], 0x10
mov edx, dword [esp + 0x30]
jae 0x40233a
lea edx, [esp + 0x30]
push ebp
call fcn.00401da0
jmp 0x402559
push ebp
mov edx, edi
mov ecx, esi
call fcn.00401ee0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x40235d
lea eax, [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebp
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp eax, 0xffffffff
jne 0x40254e
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
lea ebx, [esp + 0x48]
mov ecx, esi
mov byte [esp + 0x1b4], 2
call fcn.00402080
mov eax, dword [esp + 0x4c]
mov edi, 0x10
cmp dword [esp + 0x60], edi
jae 0x4023c2
lea eax, [esp + 0x4c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebp
mov esi, eax
mov ebx, esi
mov dword [esp + 0x18], ebx
cmp esi, 0xffffffff
jne 0x40243a
push 8
call fcn.0040eee1
mov esi, eax
add esp, 4
test esi, esi
je 0x402410
mov ecx, 0x13
mov edx, 0x2c2
mov word [esi], cx
mov word [esi + 2], dx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x402412
xor esi, esi
mov byte [esp + 0x1b4], 1
mov dword [esp + 0x14], esi
cmp dword [esp + 0x60], edi
jb 0x4025b3
mov eax, dword [esp + 0x4c]
push eax
call fcn.0040eded
add esp, 4
jmp 0x4025b3
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x402448
lea edx, [esp + 0x4c]
mov ebp, dword [esp + 0x28]
push ebp
call fcn.00401da0
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebx, dword [esp + 0x1c4]
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, dword [esp + 0x1c]
je 0x4024b1
push 8
call fcn.0040eee1
mov edi, eax
add esp, 4
test edi, edi
je 0x4024a6
mov eax, 0x13
mov ecx, 0x2cc
mov word [edi], ax
mov word [edi + 2], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x4024a8
xor edi, edi
mov dword [esp + 0x14], edi
mov edi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 4]
push 0
or ebx, 0xffffffff
push ebp
mov ecx, 0x41e488
mov dword [esp + 0x20], ebx
mov dword [edx], 1
call fcn.004029e0
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x4024e3
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], edi
jae 0x4024f1
lea eax, [esp + 0x4c]
push 5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x402531
push 8
call fcn.0040eee1
mov esi, eax
add esp, 4
test esi, esi
je 0x40252b
mov eax, 0x13
mov ecx, 0x2d5
mov word [esi], ax
mov word [esi + 2], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x40252d
xor esi, esi
mov dword [esp + 0x14], esi
mov byte [esp + 0x1b4], 1
cmp dword [esp + 0x60], edi
jb 0x4025b3
mov edx, dword [esp + 0x4c]
push edx
call fcn.0040eded
add esp, 4
jmp 0x4025b3
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [esp + 0x1c4]
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [esp + 0x1c]
je 0x4025ce
push 8
call fcn.0040eee1
mov esi, eax
add esp, 4
test esi, esi
je 0x4025ad
mov eax, 0x13
mov ecx, 0x2e6
mov word [esi], ax
mov word [esi + 2], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x4025af
xor esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4025ce
push 0x41f244
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], eax
call fcn.0040f38b
cmp ebx, 0xffffffff
je 0x4025da
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], 0x10
jb 0x4025ee
mov eax, dword [esp + 0x30]
push eax
call fcn.0040eded
add esp, 4
mov ecx, dword [esp + 0x1ac]
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.0040e340
add esp, 0x1a4
ret 0xc