Function at 0x4284f0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
test ebp, ebp
push edi
jne 0x428509
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
push ebp
call fcn.0042e800
add esp, 4
test eax, eax
jne 0x42851e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [ebp]
mov edi, 1
cmp eax, edi
mov dword [esp + 0x14], 0
jne 0x4286f9
mov ebp, dword [ebp + 4]
push edi
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x428556
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [esp + 0x18], 0
sub ebx, esi
test ebx, ebx
mov dword [esp + 0x2c], ebx
jle 0x4285ba
push ebx
call fcn.0042f03c
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edi
push 0
push eax
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4285a9
push edi
call fcn.0042f26d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, 1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jle 0x428693
lea eax, [esp + 0x48]
mov dword [esp + 0x20], eax
jmp 0x4285e2
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
xor ebx, ebx
cmp ecx, 0x80000004
jne 0x4285f3
mov esi, dword [eax]
jmp 0x428619
push eax
call fcn.0042e830
mov esi, eax
add esp, 4
test esi, esi
jne 0x428614
lea ecx, [esp + 0x1c]
push eax
push ecx
push 2
push 0x48ec18
push ebp
call edi
jmp 0x428667
mov ebx, 1
push esi
call dword [0x48ee98]
add esp, 4
test eax, eax
jle 0x428652
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push esi
push ebp
call edi
test eax, eax
je 0x42864a
lea eax, [esp + 0x1c]
push 0
push eax
push 2
push 0x48ec18
push ebp
call edi
jmp 0x428652
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x42865f
push esi
call fcn.0042f184
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4286d8
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
jl 0x4285de
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4286d8
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x428b01
push 1
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0
push ecx
push ebx
push edx
push ebp
mov esi, eax
call edi
test eax, eax
je 0x4286d0
push 0
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4286d8
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x428b01
push eax
call fcn.0042f26d
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp eax, 2
jne 0x42881c
mov ebp, dword [ebp + 4]
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 0x14]
mov edx, dword [ebp]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push 0
mov ecx, ebp
call dword [edx + 0x30]
mov ebx, eax
xor esi, esi
test ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], esi
jle 0x42875d
push ebx
call fcn.0042f03c
mov esi, dword [esp + 0x30]
mov ecx, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x20], eax
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov edi, 1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x4287e0
dec eax
lea ebx, [esp + 0x48]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 8]
xor edi, edi
cmp eax, 0x80000004
jne 0x428782
mov esi, dword [ebx]
jmp 0x428796
push ebx
call fcn.0042e830
mov esi, eax
add esp, 4
test esi, esi
je 0x4287ca
mov edi, 1
push esi
call dword [0x48ee98]
add esp, 4
test eax, eax
jle 0x4287ae
mov edx, dword [ebp]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x24]
mov eax, dword [ebp]
push 2
push 0x48ec18
mov ecx, ebp
call dword [eax + 0x24]
test edi, edi
je 0x4287ca
push esi
call fcn.0042f184
add esp, 4
mov eax, dword [esp + 0x38]
add ebx, 0xc
dec eax
mov dword [esp + 0x38], eax
jne 0x428772
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
test esi, esi
je 0x428b01
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
mov edi, eax
mov eax, dword [ebp]
push ebx
push esi
mov ecx, ebp
call dword [eax + 0x24]
push esi
call fcn.0042f26d
mov edx, dword [ebp]
add esp, 4
mov ecx, ebp
push 0
push edi
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp eax, 3
jne 0x428b01
mov ebx, dword [ebp + 4]
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x428845
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x18], 0
sub edi, esi
test edi, edi
mov dword [esp + 0x24], edi
jle 0x4288cd
push edi
call fcn.0042f03c
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42889a
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f26d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
lea ecx, [ebp + 0x10]
mov dword [esp + 0x24], eax
push ecx
lea ecx, [ebp + 0x34]
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
push esi
call fcn.0042e040
add esp, 0x18
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov eax, 1
cmp ecx, eax
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
jle 0x428a93
lea eax, [esp + 0x48]
mov dword [esp + 0x28], eax
jmp 0x4288fe
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], 0
cmp ecx, 0x80000004
jne 0x428915
mov esi, dword [eax]
jmp 0x428976
push eax
call fcn.0042e830
mov esi, eax
add esp, 4
test esi, esi
jne 0x42896e
push 1
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp + 0x34]
push edx
push ecx
lea edx, [esp + 0x1e]
push 2
push edx
push eax
mov byte [esp + 0x2a], 0xd
mov byte [esp + 0x2b], 0xa
call fcn.0042e040
add esp, 0x18
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x12]
push esi
push eax
push 2
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x428a66
mov dword [esp + 0x20], 1
push esi
call dword [0x48ee98]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x30], edi
jle 0x428a45
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4289bd
push edi
call fcn.0042f04a
mov ecx, edi
mov edi, eax
mov edx, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov edi, edx
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp + 0x10]
lea edx, [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push edx
push edi
push esi
push eax
call fcn.0042e040
add esp, 0x18
lea edx, [esp + 0x1c]
push 0
push edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push ebx
call edi
test eax, eax
je 0x428a3d
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp + 0x10]
lea edx, [esp + 0x12]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp + 0x34]
push ecx
push 2
push edx
push eax
mov byte [esp + 0x2a], 0xd
mov byte [esp + 0x2b], 0xa
call fcn.0042e040
add esp, 0x18
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x12]
push 0
push eax
push 2
push ecx
push ebx
call edi
jmp 0x428a45
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x428a56
push esi
call fcn.0042f184
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x428af0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
inc eax
add edx, 0xc
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
jl 0x4288fa
mov eax, dword [esp + 0x14]
test eax, eax
je 0x428af0
mov eax, 1
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x428b01
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
add ebp, 0x34
push edx
push eax
push ebp
mov ebp, dword [esp + 0x24]
push edi
push ebp
push esi
call fcn.0042e040
add esp, 0x18
lea ecx, [esp + 0x1c]
push 0
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428ae6
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x428af4
mov dword [esp + 0x14], 0
jmp 0x428af4
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x428b01
push ebp
call fcn.0042f26d
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret