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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455810
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x48f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], edx
mov esi, ecx
mov dword [ebp - 0x78], esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x34], ecx
test esi, esi
je 0x41e577
test edx, edx
je 0x41e577
test eax, eax
je 0x41e577
test ecx, ecx
je 0x41e577
mov dword [ebp - 0x8c], vtable.kn::auto_handle_void___struct_kn::system::handle_delete_.0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x88], esi
test esi, esi
je 0x41e063
cmp esi, 0xffffffff
jne 0x41e08e
call edi
mov edi, eax
test edi, edi
je 0x41e088
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41e57c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], vtable.kn::auto_handle_void___struct_kn::system::handle_delete_.0
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov byte [ebp - 4], 1
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x41e0c0
cmp eax, 0xffffffff
jne 0x41e0fc
call edi
mov edi, eax
test edi, edi
je 0x41e0fc
mov eax, dword [ebp - 0x60]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e0e3
cmp eax, 0xffffffff
je 0x41e0e3
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call ecx
jmp 0x41e57c
mov ecx, esi
call fcn.00405f00
test al, al
jne 0x41e10e
mov edi, 6
jmp 0x41e132
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41e166
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
test edi, edi
je 0x41e176
mov eax, dword [ebp - 0x60]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e14d
cmp eax, 0xffffffff
je 0x41e14d
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call ecx
jmp 0x41e57c
cmp dword [ebp - 0x54], 0
mov edi, dword [ebp - 0x58]
jg 0x41e1af
jl 0x41e176
cmp edi, 0x10
jae 0x41e1af
mov eax, dword [ebp - 0x60]
mov edi, 0xd
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e196
cmp eax, 0xffffffff
je 0x41e196
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call ecx
jmp 0x41e57c
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x10
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
test eax, eax
jne 0x41e221
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov edi, eax
test edi, edi
je 0x41e21b
mov eax, dword [ebp - 0x60]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e202
cmp eax, 0xffffffff
je 0x41e202
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call ecx
jmp 0x41e57c
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x58]
cmp ecx, 0x10
je 0x41e25f
mov eax, dword [ebp - 0x60]
mov edi, 0xd
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e246
cmp eax, 0xffffffff
je 0x41e246
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call ecx
jmp 0x41e57c
cmp dword [ebp - 0x28], 0x3030736a
jne 0x41e549
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x41e549
mov eax, dword [ebp - 0x54]
add edi, 0xfffffff0
mov dword [ebp - 0x80], edi
adc eax, 0xffffffff
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
push 0x1000
mov dword [ebp - 0x74], vtable.kn::basic_buffer_unsigned_char__class_std::allocator_unsigned_char__.0
call fcn.0041ddf0
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x70]
test edi, edi
jne 0x41e2f1
mov eax, dword [ebp - 0x60]
mov edi, 0x7a
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e2d8
cmp eax, 0xffffffff
je 0x41e2d8
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call ecx
jmp 0x41e57c
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41e4ed
push 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
test eax, eax
jne 0x41e348
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x4c]
mov edi, eax
mov dword [ebp - 0x4c], ecx
test edi, edi
jne 0x41e4f2
jmp 0x41e34a
xor edi, edi
test ecx, ecx
je 0x41e4f2
mov edi, dword [ebp - 0x4c]
add dword [ebp - 0x50], edi
mov dword [ebp - 0x44], 0
adc dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], vtable.kn::basic_buffer_unsigned_char__class_std::allocator_unsigned_char__.0
mov ecx, edi
mov byte [ebp - 4], 4
mov edx, edi
shr ecx, 4
and edx, 0xf
je 0x41e38b
mov eax, 0x10
sub eax, edx
je 0x41e38b
inc ecx
mov edx, dword [ebp - 0x78]
push dword [ebp - 0x7c]
push ecx
mov eax, dword [edx]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x70]
push ecx
mov eax, dword [eax + 4]
mov ecx, edx
call eax
test al, al
je 0x41e4ad
mov ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x50], ecx
jne 0x41e3c1
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x54]
jne 0x41e3c1
mov eax, dword [ebp - 0x20]
sub eax, ecx
add edi, eax
mov ecx, dword [ebp - 0x60]
call fcn.00405f00
mov edx, dword [ebp - 0x44]
test al, al
je 0x41e470
test edx, edx
je 0x41e469
test edi, edi
je 0x41e469
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e40a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x41e464
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], vtable.kn::basic_buffer_base_unsigned_char__class_std::allocator_unsigned_char__.0
test ecx, ecx
je 0x41e455
mov edx, dword [ebp - 0x3c]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e43d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e59c
push edx
push ecx
call fcn.0043fc69
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x48], vtable.kn::ptr_storage_unsigned_char_.0
jmp 0x41e305
mov edx, dword [ebp - 0x44]
jmp 0x41e475
mov edi, 0x57
jmp 0x41e475
mov edi, 6
mov dword [ebp - 0x48], vtable.kn::basic_buffer_base_unsigned_char__class_std::allocator_unsigned_char__.0
test edx, edx
je 0x41e4f2
mov ecx, dword [ebp - 0x3c]
mov eax, edx
cmp ecx, 0x1000
jb 0x41e4a1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e59c
push ecx
push edx
call fcn.0043fc69
add esp, 8
jmp 0x41e4f2
mov ecx, dword [ebp - 0x44]
mov edi, 0x54f
mov dword [ebp - 0x48], vtable.kn::basic_buffer_base_unsigned_char__class_std::allocator_unsigned_char__.0
test ecx, ecx
je 0x41e4f2
mov edx, dword [ebp - 0x3c]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e4e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e59c
push edx
push ecx
call fcn.0043fc69
add esp, 8
jmp 0x41e4f2
mov edi, 0x57
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e516
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e5a1
push edx
push ecx
call fcn.0043fc69
mov eax, dword [ebp - 0x60]
add esp, 8
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e53b
cmp eax, 0xffffffff
je 0x41e53b
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call ecx
jmp 0x41e57c
mov eax, dword [ebp - 0x60]
mov edi, 0xd
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e569
cmp eax, 0xffffffff
je 0x41e569
push eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x41e57c
cmp esi, 0xffffffff
je 0x41e57c
push esi
call ecx
jmp 0x41e57c
mov edi, 0x57
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0044316c
call fcn.0044316c
int3