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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov edx, dword [ebp + 8]
test edx, edx
mov eax, dword [0x41c0f8]
push ebx
push esi
mov dword [esp + 0x120], eax
push edi
mov ebx, ecx
jne 0x402b4f
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x402c0f
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x18]
lea esi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x402b64
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b73
mov eax, dword [str..BitField]
mov ecx, dword [0x41864c]
mov dx, word [0x418650]
push 0
push 0x8000080
push 3
push 0
mov dword [edi], eax
push 1
push closesocket
lea eax, [esp + 0x30]
mov dword [edi + 4], ecx
push eax
mov word [edi + 8], dx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
push 0
jne 0x402be2
mov ecx, ebx
call fcn.004028f0
xor ecx, ecx
test eax, eax
setge cl
dec ecx
mov eax, ecx
mov ecx, dword [esp + 0x124]
call fcn.0040f5ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402c4f
push eax
mov ecx, ebx
call fcn.004028f0
test eax, eax
push edi
jge 0x402c27
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, 0xffffffff
mov ecx, dword [esp + 0x124]
call fcn.0040f5ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ecx, dword [esp + 0x124]
call fcn.0040f5ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.0040f510
mov edx, dword [esp + 0x10]
add esp, 4
push 0
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
push edx
push esi
push edi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c80
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x14]
je 0x402ca8
push esi
call fcn.0040f50b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [esp + 0x124]
call fcn.0040f5ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
mov dword [ebx + 4], ecx
mov edx, dword [esi + 4]
mov dword [ebx + 8], edx
mov eax, dword [esi + 8]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x10], ecx
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x14], edx
mov ax, word [esi + 0x14]
mov word [ebx + 0x18], ax
mov eax, dword [ebx + 0x1c]
test eax, eax
lea ecx, [esi + 0x16]
mov dword [esp + 0xc], ecx
je 0x402ceb
push eax
call fcn.0040f50b
add esp, 4
movzx edx, word [esi + 0x14]
add edx, 2
push edx
call fcn.0040f510
mov edi, eax
mov dword [ebx + 0x1c], edi
movzx ecx, word [esi + 0x14]
add ecx, 2
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
movzx ecx, word [esi + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [ebx + 0x1c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 0x14]
mov esi, dword [esp + 0x10]
mov ax, word [esi + edx]
add esi, edx
mov word [ebx + 0x20], ax
mov eax, dword [ebx + 0x24]
add esi, 2
add esp, 4
test eax, eax
mov dword [esp + 0xc], esi
je 0x402d5d
push eax
call fcn.0040f50b
add esp, 4
movzx ecx, word [ebx + 0x20]
add ecx, 2
push ecx
call fcn.0040f510
movzx ecx, word [ebx + 0x20]
add ecx, 2
mov edx, ecx
shr ecx, 2
mov edi, eax
mov dword [ebx + 0x24], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
movzx ecx, word [ebx + 0x20]
mov edi, dword [ebx + 0x24]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [ebx + 0x20]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x28]
add esp, 4
add esi, ecx
test eax, eax
je 0x402db8
push eax
call fcn.0040f50b
add esp, 4
mov edx, dword [ebx + 0x10]
push edx
call fcn.0040f510
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x28], eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040f50b
mov ecx, dword [esp + 0x12c]
add esp, 8
xor eax, eax
call fcn.0040f5ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4