Function at 0x42ea30
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x466145
call fcn.004341ac
sub esp, 0xf0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x34], ebx
call fcn.0042e776
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp word [eax + 0x118], bx
setne byte [ebp - 0xd]
cmp dword [esi + 0x10c], ebx
je 0x42edf4
cmp eax, ebx
je 0x42edf4
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
push ebx
push 3
lea eax, [esi + 4]
push 0x80000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x42eab6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
mov dword [ebp - 4], 2
jmp 0x42edfb
push ebx
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.0042f017
test eax, eax
jne 0x42ead3
mov dword [ebp - 4], 3
jmp 0x42edfb
cmp byte [ebp - 0xd], bl
je 0x42eae5
lea ecx, [ebp - 0xac]
call fcn.0040316b
jmp 0x42eae8
mov eax, dword [ebp + 0x10]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x42eb23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x28]
mov dword [esi + 0x118], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 4
jmp 0x42edfb
mov esi, dword [ebp + 8]
mov eax, 0x400
mov dword [ebp - 0x18], eax
mov edi, dword [esi + 0x10c]
cmp edi, eax
mov dword [ebp - 0x24], edi
jae 0x42eb3e
mov dword [ebp - 0x18], edi
push dword [ebp - 0x18]
call fcn.004342c0
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x104]
test al, 6
pop ecx
mov byte [ebp + 0xf], bl
je 0x42eb5b
mov byte [ebp + 0xf], 1
mov ecx, dword [ebp + 0x14]
push 1
shr al, 2
and al, 1
cmp ecx, ebx
mov byte [ebp - 0xe], al
pop esi
je 0x42eb7b
mov eax, dword [ecx]
push edi
push ebx
call dword [eax]
cmp al, bl
jne 0x42ec10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x30], edi
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call edi
test eax, eax
je 0x42ec12
cmp byte [ebp - 0xe], bl
je 0x42ebb6
cmp byte [ebp + 0xf], bl
je 0x42ebb6
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.0040180d
add esp, 0xc
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
add dword [ebp - 0x2c], eax
cmp ecx, ebx
je 0x42ebe5
push dword [ebp - 0x30]
mov eax, dword [ecx]
push dword [ebp - 0x2c]
call dword [eax]
cmp al, bl
jne 0x42ec10
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0x24], eax
je 0x42ec12
cmp eax, ebx
je 0x42ec12
cmp dword [ebp - 0x24], 0x400
jae 0x42ec00
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
jmp 0x42eb95
xor esi, esi
push dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x20]
call edi
cmp esi, ebx
je 0x42ec88
cmp byte [ebp - 0xe], bl
jne 0x42ec88
cmp byte [ebp + 0xf], bl
je 0x42ec88
cmp byte [ebp - 0xd], bl
je 0x42ec4b
lea ecx, [ebp - 0xac]
call fcn.0040316b
jmp 0x42ec6c
push 1
lea eax, [ebp + 0xf]
pop edi
lea ecx, [ebp - 0x5c]
push edi
push eax
push dword [ebp + 0x10]
call fcn.00401a6d
mov dword [ebp - 0x34], edi
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00401c5e
push dword [ebp + 8]
push eax
call fcn.0040186b
test byte [ebp - 0x34], 1
pop ecx
mov dword [ebp - 4], ebx
pop ecx
je 0x42ec88
lea ecx, [ebp - 0x5c]
call fcn.00401306
cmp byte [ebp - 0xd], bl
je 0x42ede0
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x42ed77
mov eax, dword [ebp - 0x24]
push 1
shr eax, 0xe
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x17]
push eax
lea ecx, [ebp - 0x84]
push dword [ebp + 8]
call fcn.00402dbc
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0xd4]
push dword [ebp + 0x10]
mov byte [ebp - 4], 6
call fcn.00402dbc
lea ecx, [ebp - 0x5c]
push ebx
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040261f
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 9
call fcn.004020a2
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xfc]
push 0x47d628
push eax
call fcn.00421b59
add esp, 0xc
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xa
call fcn.00413b94
lea ecx, [ebp - 0xfc]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 9
call fcn.004020a2
cmp byte [ebp + 0xb], bl
je 0x42ed3e
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x84]
push eax
call fcn.0040211c
mov edi, dword [esi]
lea ecx, [ebp - 0x84]
call fcn.0040316b
push eax
push 1
mov ecx, esi
call dword [edi + 4]
push dword [ebp - 0x30]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.004020a2
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.004020a2
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x84]
push dword [ebp + 0x10]
mov byte [ebp - 4], 0xb
call fcn.00402dbc
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0xac]
push eax
mov byte [ebp - 4], 0xc
call fcn.0042e889
lea eax, [ebp - 0x84]
push esi
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
call fcn.0045a4e0
mov esi, eax
lea ecx, [ebp - 0x5c]
neg esi
sbb esi, esi
mov byte [ebp - 4], 0xc
inc esi
call fcn.004020a2
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xb
call fcn.004020a2
push dword [ebp - 0x1c]
call fcn.004338ba
pop ecx
mov dword [ebp - 4], 0xe
mov ebx, esi
jmp 0x42edfb
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.0040316b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004020a2
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10