Function at 0x549e70
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 + 0x58]
test ecx, ecx
je 0x549e98
mov ecx, dword [ecx + 0x10]
jmp 0x549ea2
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x549ea2
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]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
jne 0x549ed3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xf0
ret 4
mov edx, dword [ebx + 0x3d4]
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 0x54a163
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x54a163
lea ebp, [ebx + 0x390]
lea edi, [esp + 0x40]
mov esi, ebp
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x54a163
xor edi, edi
push 0x6da040
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.005474d0
mov ecx, dword [ebx + 0x3d4]
lea eax, [esp + 0x10]
lea esi, [ebx + 0x10]
push eax
push ecx
push ebp
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.0054feb0
test eax, eax
je 0x54a0ae
mov eax, dword [ebx + 0x3d4]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x54a0ae
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.005dfac7
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 + 0x1c], eax
je 0x54a08f
mov ebp, dword [esi + 0x454]
cmp ebp, edi
mov dword [esp + 0x14], ebp
je 0x54a067
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 + 0x428]
fadd qword [esp + 0x1c]
fdivrp st(1)
fst qword [esp + 0x38]
fstp qword [esi + 0x428]
fld qword [esp + 0x1c]
fsub qword [esp + 0x38]
fld qword [0x654fe8]
call fcn.005e0570
fdiv qword [esp + 0x14]
fld qword [esp + 0x30]
fmul qword [esi + 0x438]
fdiv qword [esp + 0x14]
faddp st(1)
fstp qword [esi + 0x438]
fld qword [esp + 0x1c]
jmp 0x54a071
fild dword [esp + 0x1c]
fst qword [esi + 0x428]
fcom qword [esi + 0x448]
fnstsw ax
test ah, 0x41
jne 0x54a086
fstp qword [esi + 0x448]
jmp 0x54a088
fstp st(0)
inc ebp
mov dword [esi + 0x454], ebp
mov ecx, ebx
call fcn.00549570
mov eax, dword [esp + 0x104]
mov dword [ebx + 0xa4], edi
mov dword [eax], 0xfffffff5
jmp 0x54a163
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x3d4]
mov ebp, eax
lea eax, [esp + 0x80]
push ebp
push ecx
push edx
push 0x6d9ffc
push eax
call fcn.005deb38
add esp, 0x14
lea ecx, [esp + 0x80]
push ecx
mov ecx, ebx
call fcn.005474d0
cmp ebp, 5
jne 0x54a0fe
mov edx, dword [0x6ed6e8]
mov ecx, dword [ebx + 0x9c]
push edx
call fcn.0054f740
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.0054b870
test eax, eax
je 0x54a145
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.0054faa0
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