Function at 0x418710
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x4c9080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x414]
mov edi, dword [ebp + 0xc]
push 0x400
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x450], 0
call fcn.0043dd90
add esp, 0xc
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x444]
xor eax, eax
mov dword [ebp - 0x434], 0
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x430], 0
push esi
mov dword [ebp - 0x450], 1
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], ax
call fcn.0040c8c7
mov dword [ebp - 4], 1
mov edx, 7
mov dword [ebp - 0x418], 0
xor eax, eax
mov dword [ebp - 0x418], edx
mov esi, dword [ebp - 0x434]
add esi, dword [edi + 0x10]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], ax
cmp esi, edx
je 0x418899
cmp esi, 0x7ffffffe
jbe 0x41883c
push str.string_too_long
call fcn.00439ca9
cmp esi, edx
jbe 0x418856
push 0
push esi
lea ecx, [ebp - 0x42c]
call fcn.0040d7e7
mov edx, dword [ebp - 0x418]
jmp 0x418876
cmp esi, 8
jae 0x418863
mov dword [ebp - 0x418], edx
jmp 0x418867
test esi, esi
jne 0x41887a
mov dword [ebp - 0x41c], eax
xor eax, eax
mov word [ebp - 0x42c], ax
test esi, esi
je 0x418899
cmp edx, 8
mov dword [ebp - 0x41c], 0
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0040d569
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x42c]
call fcn.0040d569
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 2
cmp edi, eax
je 0x418955
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x418928
mov ecx, dword [edi]
inc eax
cmp eax, 0x7fffffff
jbe 0x4188e8
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x41891f
test cl, 0x1f
je 0x4188fb
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x418907
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x418913
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x41891d
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x418940
mov eax, dword [edi]
jmp 0x418942
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
call fcn.0040c95c
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, 8
jb 0x4189bb
mov ecx, dword [ebp - 0x42c]
inc eax
cmp eax, 0x7fffffff
jbe 0x418977
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x4189b2
test byte [ebp - 0x42c], 0x1f
je 0x41898e
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x41899a
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x4189a6
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x4189b0
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x418], 7
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], ax
jb 0x4189e2
mov eax, dword [edi]
jmp 0x4189e4
mov eax, edi
push 0x4b836c
push eax
call fcn.0044659a
mov esi, eax
add esp, 8
mov dword [ebp - 0x44c], esi
test esi, esi
je 0x418ab6
push 2
push 0
push esi
call fcn.00449ab8
push esi
call fcn.0044628e
push 0
push 0
push esi
mov ebx, eax
call fcn.00449ab8
add esp, 0x1c
test ebx, ebx
jle 0x418a92
mov eax, 0x400
mov edi, esi
nop dword [eax]
cmp ebx, 0x400
mov esi, ebx
push edi
cmovg esi, eax
lea eax, [ebp - 0x414]
push 1
push esi
push eax
sub ebx, esi
call fcn.0044c8cf
add esp, 0x10
mov byte [ebp - 0x454], 0
lea eax, [ebp - 0x414]
add eax, esi
push dword [ebp - 0x454]
push eax
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x448]
mov ecx, eax
push dword [eax + 4]
call fcn.0040e0aa
mov eax, 0x400
test ebx, ebx
jg 0x418a30
mov edi, dword [ebp - 0x458]
mov esi, dword [ebp - 0x44c]
push esi
call fcn.004467b3
add esp, 4
cmp byte [ebp + 0x10], 0
je 0x418ab0
cmp dword [edi + 0x14], 8
jb 0x418aa9
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x448]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x430]
cmp eax, 8
jb 0x418b1c
mov ecx, dword [ebp - 0x444]
inc eax
cmp eax, 0x7fffffff
jbe 0x418ad8
call fcn.0044cbda
add eax, eax
cmp eax, 0x1000
jb 0x418b13
test byte [ebp - 0x444], 0x1f
je 0x418aef
call fcn.0044cbda
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x418afb
call fcn.0044cbda
sub ecx, eax
cmp ecx, 4
jae 0x418b07
call fcn.0044cbda
cmp ecx, 0x23
jbe 0x418b11
call fcn.0044cbda
mov ecx, eax
push ecx
call fcn.0043ae70
add esp, 4
xor eax, eax
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], ax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043b37f
mov esp, ebp
pop ebp
ret 0xc