Function at 0x4188a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x418aa2
mov eax, dword [esi + 0x50]
xor edi, edi
mov ecx, dword [esi + 0x4c]
sub eax, ecx
test eax, 0xfffffffc
jle 0x4188e8
mov ecx, dword [ecx + edi*4]
push ebx
call fcn.004318e0
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4188f6
mov eax, dword [esi + 0x50]
inc edi
sub eax, ecx
sar eax, 2
cmp edi, eax
jl 0x4188c7
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
imul edx, eax, 0x13c
mov eax, dword [ecx + edi*4]
mov eax, dword [eax + 0x2a8]
mov dword [ebp - 4], edx
mov eax, dword [eax + edx + 0x108]
cmp eax, dword [ebx + 0x100]
jb 0x418aad
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.004317c0
mov dword [ebp + 0xc], eax
test eax, eax
je 0x418aa2
cmp dword [ebp - 8], 0
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + edi*4]
mov dword [ebp + 0x10], eax
jl 0x4189f8
mov edx, dword [eax + 0x2a8]
mov ecx, dword [eax + 0x2ac]
mov eax, 0x67b23a55
sub ecx, edx
mov dword [ebp - 0x10], edx
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 8], eax
jge 0x4189f8
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [eax + edx + 0x100], 0
mov eax, dword [ecx + 0x2a8]
mov dword [eax + edx + 0x104], 0
cmp dword [ecx + 8], 0xffffffff
je 0x4189f8
mov eax, dword [ecx + 0x114]
add eax, edx
mov dword [ebp - 0x14], 0
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push edx
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x4189c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
cmp dword [ecx + 8], 0xffffffff
je 0x4189f8
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
mov eax, dword [ecx + 0x2a8]
push 0x13c
add eax, edx
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x4c]
push dword [ebx + 0x100]
mov eax, dword [eax + edi*4]
mov ecx, eax
mov dword [ebp + 0x10], eax
call fcn.00432280
mov ecx, dword [ebp + 0x10]
cmp eax, 0xffffffff
jne 0x418a7b
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.00432800
mov ecx, dword [esi + 0x80]
mov edx, eax
mov dword [ebp - 0x10], edx
cmp ecx, dword [esi + 0x84]
je 0x418a6c
mov eax, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
add dword [esi + 0x80], 0xc
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x18]
push eax
push ecx
lea ecx, [esi + 0x7c]
call fcn.0041a570
jmp 0x418a4a
mov esi, dword [ebp + 0xc]
push 1
push eax
push esi
call fcn.004328c0
test al, al
jne 0x418a4d
push 0x7726c4
push 0
call fcn.0041d690
mov eax, dword [esi]
add esp, 8
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x50]
xor edi, edi
sub eax, ecx
xor ebx, ebx
test eax, 0xfffffffc
jle 0x418aed
nop dword [eax]
push dword [ebp + 0x10]
mov ecx, dword [ecx + ebx*4]
call fcn.00432b20
mov ecx, dword [esi + 0x4c]
test al, al
mov eax, 1
cmovne edi, eax
mov eax, dword [esi + 0x50]
sub eax, ecx
inc ebx
sar eax, 2
cmp ebx, eax
jl 0x418ac0
test edi, edi
jne 0x4188e8
push str.Remove_File_Failed_
push 0
call fcn.0041d690
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10