Function at 0x536de0
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 0x536e08
mov ecx, dword [ecx + 0x10]
jmp 0x536e12
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x536e12
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 0x536e43
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 0x5370d3
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5370d3
lea ebp, [ebx + 0x388]
lea edi, [esp + 0x40]
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x5370d3
xor edi, edi
push str.Check_w_st_o_n_cn_failed__n
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00534940
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.0053cd20
test eax, eax
je 0x53701e
mov eax, dword [ebx + 0x3cc]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x53701e
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.005c652c
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 0x536fff
mov ebp, dword [esi + 0x444]
cmp ebp, edi
mov dword [esp + 0x14], ebp
je 0x536fd7
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 [0x63a7d8]
call fcn.005c6fe0
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 0x536fe1
fild dword [esp + 0x1c]
fst qword [esi + 0x418]
fcom qword [esi + 0x438]
fnstsw ax
test ah, 0x41
jne 0x536ff6
fstp qword [esi + 0x438]
jmp 0x536ff8
fstp st(0)
inc ebp
mov dword [esi + 0x444], ebp
mov ecx, ebx
call fcn.005364e0
mov eax, dword [esp + 0x104]
mov dword [ebx + 0xa4], edi
mov dword [eax], 0xfffffff5
jmp 0x5370d3
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.005c5558
add esp, 0x14
lea ecx, [esp + 0x80]
push ecx
mov ecx, ebx
call fcn.00534940
cmp ebp, 5
jne 0x53706e
mov edx, dword [0x6cfd2c]
mov ecx, dword [ebx + 0x9c]
push edx
call fcn.0053c5b0
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.00538730
test eax, eax
je 0x5370b5
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.0053c910
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