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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d260
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x46b074]
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 edi, edx
mov eax, ecx
mov dword [ebp - 0x58], eax
cmp dword [eax + 0x50], 0
je 0x41af1c
cmp dword [eax + 0x68], 0
je 0x41af1c
cmp edi, 0xffffffff
je 0x41af1c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41af1c
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x64], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41af1c
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movq qword [ebp - 0x7c], xmm0
movq qword [ebp - 0x84], xmm0
cmp ebx, 2
jne 0x41ac1a
mov ebx, dword [ebp - 0x64]
mov esi, 0x100000
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], esi
jmp 0x41ac4f
cmp ebx, 1
jne 0x41af1c
mov ecx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], ebx
test ecx, ecx
jl 0x41ac4a
jg 0x41ac3d
cmp ebx, 0x100000
jbe 0x41ac4a
mov ebx, 0x100000
xor ecx, ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ecx
mov esi, ebx
mov dword [ebp - 0x50], ebx
mov eax, ebx
or eax, ecx
je 0x41af1c
test esi, esi
je 0x41af1c
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00409220
cmp dword [ebp - 0x4c], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x6c], xmm0
jl 0x41ad7a
jg 0x41ac88
test ebx, ebx
je 0x41ad7a
mov eax, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x88], eax
push 1
lea eax, [ebp - 0x84]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x7c], xmm0
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41aeec
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x48]
push 0
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41aeec
push 0
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41aeec
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x6c], 0x10
lea edx, [eax + 0x58]
jb 0x41ad08
mov edx, dword [edx]
mov ecx, eax
call fcn.00419610
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae esi, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
push esi
call fcn.00419630
add esp, 8
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41aeec
add ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x88]
adc esi, 0
cmp esi, dword [ebp - 0x4c]
mov dword [ebp - 0x88], esi
mov esi, dword [ebp - 0x50]
jl 0x41ac94
jg 0x41ad7a
cmp ebx, dword [ebp - 0x54]
jb 0x41ac94
xorps xmm0, xmm0
movq qword [ebp - 0x6c], xmm0
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
movq qword [ebp - 0x6c], xmm0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x68]
push 2
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
push ecx
push esi
push edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41aeec
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x44]
call fcn.0041a890
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x41aebc
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push edx
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x41aebc
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x34]
jne 0x41aebc
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
push 0
mov byte [ebp - 0x70], al
lea eax, [ebp - 0x48]
push eax
push 0x10
lea eax, [ebp - 0x74]
mov word [ebp - 0x6f], 0
push eax
push edi
mov dword [ebp - 0x74], 0xd3b1d3ff
call ebx
test eax, eax
je 0x41aebc
cmp dword [ebp - 0x48], 0x10
jne 0x41aebc
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x41ae72
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41ae68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af3a
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x41aeb8
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41aeae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af3f
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov al, 1
jmp 0x41af1e
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x41aeec
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41aee2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af44
push edx
push ecx
call fcn.00422d4e
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41af1c
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41af12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41af49
push edx
push ecx
call fcn.00422d4e
add esp, 8
xor al, al
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.00422d0d
mov esp, ebp
pop ebp
ret
call fcn.0043d6f9
call fcn.0043d6f9
call fcn.0043d6f9
call fcn.0043d6f9
int3