Function at 0x43e970
Capabilities:
Get file size
Read 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 0x457113
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
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 - 0x4c], edx
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x88], edx
test eax, eax
je 0x43ee09
test ecx, ecx
je 0x43ee09
mov dword [ebp - 0xa8], vtable.kn::auto_handle_void___struct_kn::system::handle_delete_.0
push 0
push 0x80
push 3
push 0
push 7
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 - 0xa4], esi
test esi, esi
je 0x43ea1d
cmp esi, 0xffffffff
jne 0x43ea2b
call edi
mov edi, eax
test edi, edi
jne 0x43ea5c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00405f00
test al, al
jne 0x43ea3d
mov edi, 6
jmp 0x43ea5c
lea eax, [ebp - 0x70]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x70], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x43ea79
call edi
mov edi, eax
test edi, edi
je 0x43ea89
test esi, esi
je 0x43ee0e
cmp esi, 0xffffffff
je 0x43ee0e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43ee0e
cmp dword [ebp - 0x6c], 0
mov edi, dword [ebp - 0x70]
jg 0x43ea90
jl 0x43ea89
cmp edi, 0x10
jae 0x43ea90
mov edi, 0xd
jmp 0x43ea5c
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x10
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
test eax, eax
jne 0x43eacd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x43ea5c
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x70]
cmp ecx, 0x10
je 0x43ead9
mov edi, 0xd
jmp 0x43ea5c
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x40]
jne 0x43ea89
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebp - 0x3c]
jne 0x43ea89
mov eax, dword [ebp - 0x6c]
add edi, 0xfffffff0
mov dword [ebp - 0x84], edi
adc eax, 0xffffffff
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x7c], vtable.kn::auto_ptr_class_kn::crypto_aes_base_unsigned_char__class_std::allocator_unsigned_char____struct_std::default_delete_class_kn::crypto_aes_base_unsigned_char__class_std::allocator_unsigned_char____.0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
mov edx, dword [ebp - 0x4c]
call fcn.0041de90
test al, al
jne 0x43eb37
mov edi, 0x7a
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x43ea5c
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x43ea5c
push 0x4582b0
push 0x1000
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x9c], 0x479ee0
call fcn.0043fc9a
xor ecx, ecx
mov dword [ebp - 0x98], eax
add esp, 8
mov dword [ebp - 0x48], ecx
test eax, eax
je 0x43eb7e
mov ecx, 0x1000
mov dword [ebp - 0x90], 0x1000
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
test eax, eax
jne 0x43eb9f
mov ecx, dword [ebp - 0x78]
lea edi, [eax + 0x7a]
test ecx, ecx
je 0x43ea5c
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x43ea5c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x64], edx
nop dword [eax]
test ecx, ecx
je 0x43ed21
push 0
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x4c]
test eax, eax
jne 0x43ec03
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43ed21
test edi, edi
je 0x43ed21
add dword [ebp - 0x64], edi
mov dword [ebp - 0x5c], 0
adc dword [ebp - 0x44], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x60], 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 0x43ec41
mov eax, 0x10
sub eax, edx
je 0x43ec41
inc ecx
mov edx, dword [ebp - 0x78]
push dword [ebp - 0x80]
push ecx
mov eax, dword [edx + 0x18]
lea ecx, [ebp - 0x60]
push dword [ebp - 0x98]
push ecx
mov eax, dword [eax + 4]
lea ecx, [edx + 0x18]
call eax
test al, al
je 0x43eda5
mov ecx, dword [ebp - 0x84]
cmp dword [ebp - 0x64], ecx
jne 0x43ec7f
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x6c]
jne 0x43ec7f
mov eax, dword [ebp - 0x38]
sub eax, ecx
add edi, eax
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push edi
call fcn.00421470
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], vtable.kn::basic_buffer_base_unsigned_char__class_std::allocator_unsigned_char__.0
test al, al
je 0x43ecf2
test ecx, ecx
je 0x43ecdd
mov edx, dword [ebp - 0x54]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ecc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee2e
push edx
push ecx
call fcn.0043fc69
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x60], vtable.kn::ptr_storage_unsigned_char_.0
jmp 0x43ebd0
test ecx, ecx
je 0x43ed21
mov edx, dword [ebp - 0x54]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ed17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee2e
push edx
push ecx
call fcn.0043fc69
add esp, 8
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x88]
cmovae edx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.00439950
mov edx, dword [ebp - 0x18]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x43ede1
cmp edx, 0x10
jb 0x43ed80
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43ed76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee33
push edx
push ecx
call fcn.0043fc69
add esp, 8
push dword [ebp - 0x98]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0043ff40
add esp, 4
jmp 0x43eb21
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], vtable.kn::basic_buffer_base_unsigned_char__class_std::allocator_unsigned_char__.0
test ecx, ecx
je 0x43ed21
mov edx, dword [ebp - 0x54]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ed17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee2e
jmp 0x43ed17
cmp edx, 0x10
jb 0x43ed80
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43ed76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ee33
jmp 0x43ed76
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