Function at 0x54de40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62aafb
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 0x54de7d
mov ecx, dword [ecx + 0x10]
jmp 0x54de87
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x54de87
lea ecx, [eax + 0x30]
push 0
push 0
push 3
push 0
push 3
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
jne 0x54deb2
mov eax, 1
jmp 0x54e1e5
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 0x54e1da
mov eax, dword [esp + 0x14]
test eax, eax
je 0x54e1da
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 0x54e1d6
mov ecx, dword [0x6f175c]
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.005fa6fb
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.0054b0f0
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x9c]
push edx
push ebp
call fcn.00553960
mov ecx, dword [ebx + 0x9c]
push 0xc
push str._r_ntmpBuff:_r_n
call fcn.00553960
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, dword [ebx + 0x9c]
call fcn.00553960
mov ecx, dword [ebx + 0x9c]
push 2
push 0x6c5da8
call fcn.00553960
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.00554030
cmp eax, edi
je 0x54e104
mov eax, dword [ebx + 0x3d4]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x54e104
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.005e6b47
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 0x54e0e5
mov ebp, dword [esi + 0x45c]
cmp ebp, edi
mov dword [esp + 0x1c], ebp
je 0x54e0bd
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 + 0x430]
fadd qword [esp + 0x24]
fdivrp st(1)
fst qword [esp + 0x3c]
fstp qword [esi + 0x430]
fld qword [esp + 0x24]
fsub qword [esp + 0x3c]
fld qword [0x65d778]
call fcn.005e75f0
fdiv qword [esp + 0x1c]
fld qword [esp + 0x34]
fmul qword [esi + 0x440]
fdiv qword [esp + 0x1c]
faddp st(1)
fstp qword [esi + 0x440]
fld qword [esp + 0x24]
jmp 0x54e0c7
fild dword [esp + 0x24]
fst qword [esi + 0x430]
fcom qword [esi + 0x450]
fnstsw ax
test ah, 0x41
jne 0x54e0dc
fstp qword [esi + 0x450]
jmp 0x54e0de
fstp st(0)
inc ebp
mov dword [esi + 0x45c], ebp
mov ecx, ebx
call fcn.0054d540
mov edx, dword [esp + 0x114]
mov dword [ebx + 0xa4], edi
mov dword [edx], 0xfffffff5
jmp 0x54e1c2
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.005e5bb8
add esp, 0x14
lea eax, [esp + 0x84]
mov ecx, ebx
push eax
call fcn.0054b0f0
cmp ebp, 5
jne 0x54e154
mov ecx, dword [0x6f7354]
push ecx
mov ecx, dword [ebx + 0x9c]
call fcn.00553840
mov ecx, dword [esp + 0x18]
mov edi, dword [ebx + 0x68]
xor edx, edx
add edi, ecx
mov dword [ebx + 0x68], edi
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 edi, dword [eax + 4]
adc edi, edx
mov dword [eax + 4], edi
call fcn.0054f970
test eax, eax
je 0x54e1a4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10c], 0xffffffff
call fcn.006018cc
mov eax, 0xfffffffb
jmp 0x54e1e5
mov edx, dword [ebx + 0x90]
mov ecx, esi
mov eax, dword [edx + 0x10]
push eax
call fcn.00553c20
mov ecx, dword [esp + 0x114]
mov dword [ecx], 0xfffffffe
lea ecx, [esp + 0x10]
mov dword [esp + 0x10c], 0xffffffff
call fcn.006018cc
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