Function at 0x538b60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xf0
push ebx
mov ebx, ecx
mov dword [eax], 0
push ebp
mov eax, dword [ebx + 0x90]
push esi
push edi
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x538b88
mov ecx, dword [ecx + 0x10]
jmp 0x538b92
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x538b92
lea ecx, [eax + 0x30]
push 0
push 0
push 3
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x538bc3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xf0
ret 4
mov edx, dword [ebx + 0x3cc]
lea ecx, [esp + 0x28]
push 0
push ecx
lea ecx, [esp + 0x48]
push edx
push ecx
push eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x538e53
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x538e53
lea ebp, [ebx + 0x388]
lea edi, [esp + 0x40]
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x538e53
xor edi, edi
push str.Check_w_st_o_n_cn_failed__n
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.005366c0
mov ecx, dword [ebx + 0x3cc]
lea eax, [esp + 0x10]
lea esi, [ebx + 0x10]
push eax
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.0053eaa0
test eax, eax
je 0x538d9e
mov eax, dword [ebx + 0x3cc]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x538d9e
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 + 0x3cc]
mov esi, dword [ecx]
cdq
add esi, eax
mov dword [ecx], esi
mov eax, dword [ecx + 4]
lea esi, [ebx + 0x41c]
adc eax, edx
push esi
mov dword [ecx + 4], eax
call fcn.005c8c6c
mov eax, dword [esi]
mov ecx, dword [ebx + 0x410]
mov esi, dword [ebx + 0xb0]
add esp, 4
sub eax, ecx
mov dword [ebx + 0x428], eax
mov dword [esp + 0x1c], eax
je 0x538d7f
mov ebp, dword [esi + 0x444]
cmp ebp, edi
mov dword [esp + 0x14], ebp
je 0x538d57
fild dword [esp + 0x14]
lea edx, [ebp + 1]
mov dword [esp + 0x14], edx
fstp qword [esp + 0x30]
fild dword [esp + 0x1c]
fstp qword [esp + 0x1c]
fild dword [esp + 0x14]
fst qword [esp + 0x14]
fld qword [esp + 0x30]
fmul qword [esi + 0x418]
fadd qword [esp + 0x1c]
fdivrp st(1)
fst qword [esp + 0x38]
fstp qword [esi + 0x418]
fld qword [esp + 0x1c]
fsub qword [esp + 0x38]
fld qword [0x63c7d8]
call fcn.005c9720
fdiv qword [esp + 0x14]
fld qword [esp + 0x30]
fmul qword [esi + 0x428]
fdiv qword [esp + 0x14]
faddp st(1)
fstp qword [esi + 0x428]
fld qword [esp + 0x1c]
jmp 0x538d61
fild dword [esp + 0x1c]
fst qword [esi + 0x418]
fcom qword [esi + 0x438]
fnstsw ax
test ah, 0x41
jne 0x538d76
fstp qword [esi + 0x438]
jmp 0x538d78
fstp st(0)
inc ebp
mov dword [esi + 0x444], ebp
mov ecx, ebx
call fcn.00538260
mov eax, dword [esp + 0x104]
mov dword [ebx + 0xa4], edi
mov dword [eax], 0xfffffff5
jmp 0x538e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x3cc]
mov ebp, eax
lea eax, [esp + 0x80]
push ebp
push ecx
push edx
push str.File_write_error__Received__d_bytes__wrote__d_bytes__errCode___ld_n
push eax
call fcn.005c7c98
add esp, 0x14
lea ecx, [esp + 0x80]
push ecx
mov ecx, ebx
call fcn.005366c0
cmp ebp, 5
jne 0x538dee
mov edx, dword [0x6d2024]
mov ecx, dword [ebx + 0x9c]
push edx
call fcn.0053e330
mov ecx, dword [esp + 0x10]
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.0053a4b0
test eax, eax
je 0x538e35
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0xf0
ret 4
mov eax, dword [ebx + 0x90]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0053e690
mov edx, dword [esp + 0x104]
mov dword [edx], 0xfffffffe
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf0
ret 4