Function at 0x418ed0
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e518
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or esi, 0xffffffff
cmp ebx, esi
jne 0x418f59
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x418f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, esi
jne 0x418fa7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x418f43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x24]
add eax, 1
mov esi, eax
adc ecx, 0
push esi
mov dword [ebp - 0x1c], ecx
call fcn.0041bb83
mov edi, eax
add esp, 4
test edi, edi
jne 0x418fea
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x418f37
push esi
push 0
push edi
call fcn.0041d2e0
add esp, 0xc
push 0
lea ecx, [ebp - 0x10]
push ecx
push esi
push edi
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
inc eax
push eax
mov dword [ebp - 0x14], eax
call fcn.0041b26c
mov esi, eax
add esp, 4
test esi, esi
je 0x419034
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, edi
call fcn.004091c0
add esp, 8
push edi
call fcn.0041bc7c
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
test esi, esi
je 0x4190b5
mov ebx, dword [ebp - 0x14]
add ebx, ebx
push ebx
call fcn.0041bb83
mov edi, eax
add esp, 4
test edi, edi
je 0x4190ac
push ebx
push 0
push edi
call fcn.0041d2e0
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
sub ebx, 2
push edi
mov ecx, esi
mov dword [ebp - 0x1c], ebx
call fcn.00412cd0
mov ebx, eax
push esi
mov dword [ebp - 0x1c], ebx
call fcn.0041b300
add esp, 0xc
test ebx, ebx
je 0x4190a4
mov edx, dword [ebp + 8]
push edx
mov ecx, edi
call fcn.00419100
mov dword [ebp - 0x1c], eax
push edi
call fcn.0041bc7c
jmp 0x4190b2
push esi
call fcn.0041b300
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4190e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8