Function at 0x5dafb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65a753
mov eax, dword fs:[0]
push eax
mov eax, 0x100e0
call fcn.00627fd0
mov eax, dword [0x70b514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x100e4], esi
mov dword [ebp - 0x100ec], eax
mov dword [ebp - 0x100e8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100ec]
push eax
push ebx
call fcn.005b92c1
pop ecx
pop ecx
push 0
push 0x80
push 3
push 0
push 1
push accept
push dword [ebp - 0x100ec]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5db0fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1003c]
push eax
call fcn.005b93ab
push ebx
lea eax, [ebp - 0x10084]
mov byte [ebp - 4], 1
push str.Error_opening
push eax
call fcn.005a0eb7
push 0x6e67ac
push eax
lea eax, [ebp - 0x1006c]
mov byte [ebp - 4], 2
push eax
call fcn.005a0e4e
add esp, 0x20
lea ecx, [ebp - 0x1003c]
mov byte [ebp - 4], 3
push ecx
push eax
push dword [ebp - 0x100e4]
lea ecx, [ebp - 0x10054]
call fcn.005a16fc
mov ebx, 0x70b09c
mov ecx, ebx
call fcn.00449320
lea eax, [ebp - 0x10054]
mov ecx, ebx
push eax
call fcn.00449540
lea ecx, [ebp - 0x10054]
call fcn.00449320
lea ecx, [ebp - 0x1006c]
call fcn.00449320
lea ecx, [ebp - 0x10084]
call fcn.00449320
lea ecx, [ebp - 0x1003c]
call fcn.00449320
xor eax, eax
cmp dword [ebp - 0x100ec], eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
jmp 0x5db210
lea eax, [ebp - 0x100e0]
push eax
call fcn.005dc6cd
pop ecx
xor bl, bl
push 0
lea eax, [ebp - 0x100e4]
push eax
push 0xffff
lea eax, [ebp - 0x10024]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5db167
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1003c]
push eax
call fcn.005b93ab
pop ecx
pop ecx
mov ecx, 0x70b09c
call fcn.00449320
lea eax, [ebp - 0x1003c]
mov ecx, 0x70b09c
push eax
call fcn.00449540
lea ecx, [ebp - 0x1003c]
call fcn.00449320
push dword [ebp - 0x100e4]
lea eax, [ebp - 0x10024]
push eax
lea eax, [ebp - 0x100e0]
push eax
call fcn.005dc6ff
add esp, 0xc
test bl, bl
jne 0x5db194
cmp dword [ebp - 0x100e4], 0
ja 0x5db10a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x100e0]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005dc625
pop ecx
pop ecx
test bl, bl
jne 0x5db0e0
xor edi, edi
mov dl, byte [ebp + edi - 0x24]
mov al, dl
movzx ecx, dl
and al, 0xf0
cmp al, 0xa0
sbb al, al
shr ecx, 4
and al, 0xd9
add al, 0x57
add al, cl
mov byte [ebp + edi*2 - 0x10024], al
mov al, dl
and al, 0xf
cmp al, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, dl
mov byte [ebp + edi*2 - 0x10023], al
inc edi
cmp edi, 0x14
jl 0x5db1b7
lea eax, [ebp - 0x10024]
mov byte [ebp - 0xfffc], 0
push eax
mov ecx, esi
call fcn.00449370
cmp dword [ebp - 0x100ec], 0
je 0x5db21e
push dword [ebp - 0x100ec]
call fcn.0062eaa7
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00627eaa
leave
ret