Function at 0x434240
Capabilities:
Get file size
Hash data using sha256
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
mov dword [ebp - 8], ebx
movlpd qword [ebp - 0x18], xmm0
push edi
test ebx, ebx
je 0x4346d4
test esi, esi
je 0x4346d4
cmp dword [ebp + 8], 0
je 0x4346d4
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4346d6
mov ecx, dword [esi + 0xc]
mov edi, dword [ebp - 0x14]
add ecx, 0x20c
add ecx, dword [esi + 4]
test edi, edi
jl 0x4346d4
mov edx, dword [ebp - 0x18]
jg 0x4342ac
cmp edx, ecx
jbe 0x4346d4
mov ecx, 0xfffffdfc
mov eax, 0xffffffff
sub ecx, dword [esi + 0xc]
push 0x8068
sbb eax, 0
add edx, ecx
mov dword [ebp - 0x18], edx
adc edi, eax
mov dword [ebp - 0x14], edi
call fcn.0045a914
mov edi, eax
add esp, 4
test edi, edi
je 0x4346d4
mov eax, dword [esi]
xorps xmm0, xmm0
push 0
push 0
movlpd qword [ebp - 0x20], xmm0
push dword [ebp - 0x1c]
mov dword [edi], 0x6a09e667
push dword [ebp - 0x20]
mov dword [edi + 4], 0xbb67ae85
push ebx
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
test esi, esi
je 0x434378
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [edi + 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
je 0x4346c2
xor ecx, ecx
cmp eax, dword [ebp - 0xc]
cmovne esi, ecx
jmp 0x43437b
mov eax, dword [ebp - 4]
test esi, esi
je 0x4346c2
push 0
push eax
lea edx, [edi + 0x68]
mov ecx, edi
call fcn.00435b00
push 0
push 4
lea edx, [edi + 0x68]
mov dword [edi + 0x68], 0
mov ecx, edi
call fcn.00435b00
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
add eax, 4
push 0
push 0
push 0
push eax
sub ecx, eax
push ebx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
test esi, esi
je 0x4343fe
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [edi + 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
je 0x4346c2
xor ecx, ecx
cmp eax, dword [ebp - 0xc]
cmovne esi, ecx
jmp 0x434401
mov eax, dword [ebp - 4]
test esi, esi
je 0x4346c2
push 0
push eax
lea edx, [edi + 0x68]
mov ecx, edi
call fcn.00435b00
xorps xmm0, xmm0
lea edx, [edi + 0x68]
push 0
push 8
mov ecx, edi
movq qword [edi + 0x68], xmm0
call fcn.00435b00
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov ebx, dword [ebp - 0x18]
mov eax, 0xfffffff8
mov edx, 0xffffffff
mov ecx, dword [ecx + 4]
sub eax, ecx
sbb edx, 0
add ebx, eax
mov eax, dword [ebp - 0x14]
adc eax, edx
mov dword [ebp - 0x18], ebx
add ecx, 8
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
test eax, eax
jl 0x434520
jg 0x434475
cmp ebx, 0x8000
jb 0x434520
mov ebx, dword [ebp - 8]
push 0
push 0
push edx
push ecx
push ebx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
test esi, esi
je 0x4346c2
push 0
lea eax, [ebp - 0x10]
push eax
push 0x8000
lea eax, [edi + 0x68]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x4346c2
xor eax, eax
cmp dword [ebp - 0x10], 0x8000
cmovne esi, eax
test esi, esi
je 0x4346c2
push eax
push 0x8000
lea edx, [edi + 0x68]
mov ecx, edi
call fcn.00435b00
mov ecx, dword [ebp - 0xc]
add esp, 8
mov edx, dword [ebp - 4]
add ecx, 0x8000
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
adc edx, 0
add ebx, 0xffff8000
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
adc eax, 0xffffffff
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x434475
jl 0x434520
cmp ebx, 0x8000
jae 0x434475
push 0
push 0
push edx
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, eax
test esi, esi
je 0x4346c2
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [edi + 0x68]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x4346c2
xor eax, eax
cmp ebx, dword [ebp - 0x10]
cmovne esi, eax
test esi, esi
je 0x4346c2
push eax
push dword [ebp - 0x18]
lea ebx, [edi + 0x68]
mov ecx, edi
mov edx, ebx
call fcn.00435b00
push 0x200
push 0
push ebx
call fcn.00450820
add esp, 0x14
mov edx, ebx
mov ecx, edi
push 0
push 0x200
call fcn.00435b00
push 0
push 4
mov edx, ebx
mov dword [ebx], 0x44444444
mov ecx, edi
call fcn.00435b00
mov esi, dword [edi + 0x20]
add esp, 0x10
and esi, 0x3f
mov byte [esi + edi + 0x28], 0x80
inc esi
cmp esi, 0x38
je 0x4345dc
and esi, 0x3f
jne 0x4345d1
mov ecx, edi
call fcn.00434de0
mov byte [edi + esi + 0x28], 0
inc esi
cmp esi, 0x38
jne 0x4345c5
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
shld ecx, edx, 3
mov eax, ecx
shl edx, 3
shr eax, 0x18
mov byte [edi + 0x60], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0x61], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0x62], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 0x63], cl
mov ecx, edi
mov byte [edi + 0x64], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0x65], al
mov eax, edx
shr eax, 8
mov byte [edi + 0x66], al
mov byte [edi + 0x67], dl
call fcn.00434de0
mov esi, dword [ebp + 8]
xor ebx, ebx
add esi, 6
nop
mov ecx, dword [edi + ebx*4]
lea esi, [esi + 8]
mov edx, dword [edi + ebx*4 + 4]
mov eax, ecx
shr eax, 0x18
add ebx, 2
mov byte [esi - 0xe], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi - 0xc], al
mov eax, edx
shr eax, 0x18
mov byte [esi - 0xb], cl
mov byte [esi - 0xa], al
mov eax, edx
shr eax, 0x10
mov byte [esi - 9], al
mov eax, edx
shr eax, 8
mov byte [esi - 8], al
mov byte [esi - 7], dl
cmp ebx, 8
jb 0x434630
mov dword [edi], 0x6a09e667
mov esi, 1
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
push edi
call fcn.004575c1
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret