Function at 0x56a7a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64fe9b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xf4
mov dword [eax], 0
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x90]
push edi
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x56a7dd
mov ecx, dword [ecx + 0x10]
jmp 0x56a7e7
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x56a7e7
lea ecx, [eax + 0x30]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
jne 0x56a812
mov eax, 1
jmp 0x56ab4d
mov edx, dword [ebx + 0x3d4]
lea ecx, [esp + 0x14]
push 0
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
push esi
mov dword [esp + 0x40], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56ab42
mov eax, dword [esp + 0x14]
test eax, eax
je 0x56ab42
lea ebp, [ebx + 0x390]
mov ecx, eax
lea edi, [esp + 0x44]
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x56ab3e
mov ecx, dword [0x6f7b78]
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], ecx
mov edx, dword [ebx + 0x3d4]
push eax
push edx
lea eax, [esp + 0x18]
push str.Check_w_st_o_n_cn_failed__r_nposInCmpBuff3_ld__bytes_read_ld_r_nBuff3:_r_n
push eax
mov dword [esp + 0x11c], edi
call fcn.0061fae1
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.00567a50
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x9c]
push edx
push ebp
call fcn.00570390
mov ecx, dword [ebx + 0x9c]
push 0xc
push str._r_ntmpBuff:_r_n
call fcn.00570390
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, dword [ebx + 0x9c]
call fcn.00570390
mov ecx, dword [ebx + 0x9c]
push 2
push 0x6c9e2c
call fcn.00570390
mov eax, dword [ebx + 0x3d4]
lea edx, [esp + 0x18]
lea esi, [ebx + 0x10]
push edx
push eax
push ebp
mov ecx, esi
mov dword [esp + 0x24], edi
call fcn.00570a60
cmp eax, edi
je 0x56aa64
mov eax, dword [ebx + 0x3d4]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x56aa64
mov ebp, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x70]
cdq
add ebp, eax
mov dword [ebx + 0x68], ebp
mov esi, dword [ebx + 0x6c]
adc esi, edx
add ecx, eax
mov dword [ebx + 0x70], ecx
mov ebp, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x94]
mov dword [ebx + 0x6c], esi
adc ebp, edx
mov dword [ebx + 0x74], ebp
mov esi, dword [ecx]
add esi, eax
mov dword [ecx], esi
mov ebp, dword [ecx + 4]
adc ebp, edx
mov dword [ecx + 4], ebp
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebx + 0x3d4]
mov esi, dword [ecx]
cdq
add esi, eax
mov dword [ecx], esi
mov eax, dword [ecx + 4]
lea esi, [ebx + 0x424]
adc eax, edx
push esi
mov dword [ecx + 4], eax
call fcn.0060b5c4
mov eax, dword [esi]
mov ecx, dword [ebx + 0x418]
mov esi, dword [ebx + 0xb0]
add esp, 4
sub eax, ecx
mov dword [ebx + 0x430], eax
mov dword [esp + 0x24], eax
je 0x56aa45
mov ebp, dword [esi + 0x47c]
cmp ebp, edi
mov dword [esp + 0x1c], ebp
je 0x56aa1d
fild dword [esp + 0x1c]
lea ecx, [ebp + 1]
mov dword [esp + 0x1c], ecx
fstp qword [esp + 0x34]
fild dword [esp + 0x24]
fstp qword [esp + 0x24]
fild dword [esp + 0x1c]
fst qword [esp + 0x1c]
fld qword [esp + 0x34]
fmul qword [esi + 0x450]
fadd qword [esp + 0x24]
fdivrp st(1)
fst qword [esp + 0x3c]
fstp qword [esi + 0x450]
fld qword [esp + 0x24]
fsub qword [esp + 0x3c]
fld qword [0x663828]
call fcn.0060c070
fdiv qword [esp + 0x1c]
fld qword [esp + 0x34]
fmul qword [esi + 0x460]
fdiv qword [esp + 0x1c]
faddp st(1)
fstp qword [esi + 0x460]
fld qword [esp + 0x24]
jmp 0x56aa27
fild dword [esp + 0x24]
fst qword [esi + 0x450]
fcom qword [esi + 0x470]
fnstsw ax
test ah, 0x41
jne 0x56aa3c
fstp qword [esi + 0x470]
jmp 0x56aa3e
fstp st(0)
inc ebp
mov dword [esi + 0x47c], ebp
mov ecx, ebx
call fcn.00569ea0
mov edx, dword [esp + 0x114]
mov dword [ebx + 0xa4], edi
mov dword [edx], 0xfffffff5
jmp 0x56ab2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3d4]
mov ebp, eax
mov eax, dword [esp + 0x18]
push ebp
push eax
push ecx
lea edx, [esp + 0x90]
push str.File_write_error__Received__d_bytes__wrote__d_bytes__errCode___ld_n
push edx
call fcn.0060a593
add esp, 0x14
lea eax, [esp + 0x84]
mov ecx, ebx
push eax
call fcn.00567a50
cmp ebp, 5
jne 0x56aab4
mov ecx, dword [0x6fdbdc]
push ecx
mov ecx, dword [ebx + 0x9c]
call fcn.00570270
mov ecx, dword [esp + 0x18]
mov ebp, dword [ebx + 0x68]
xor edx, edx
add ebp, ecx
mov dword [ebx + 0x68], ebp
mov eax, dword [ebx + 0x6c]
adc eax, edx
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x94]
mov ebp, dword [eax]
add ebp, ecx
mov ecx, ebx
mov dword [eax], ebp
mov ebp, dword [eax + 4]
adc ebp, edx
mov dword [eax + 4], ebp
call fcn.0056c2e0
test eax, eax
je 0x56ab04
lea ecx, [esp + 0x10]
mov dword [esp + 0x10c], 0xffffffff
call fcn.00622d8a
mov eax, 0xfffffffb
jmp 0x56ab4d
mov ebx, dword [ebx + 0x90]
cmp ebx, edi
je 0x56ab1d
mov ebx, dword [ebx + 0x10]
cmp ebx, edi
je 0x56ab1d
push ebx
mov ecx, esi
call fcn.00570650
mov edx, dword [esp + 0x114]
mov dword [edx], 0xfffffffe
lea ecx, [esp + 0x10]
mov dword [esp + 0x10c], 0xffffffff
call fcn.00622d8a
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret 4