Function at 0x5d9bb7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658fdb
mov eax, dword fs:[0]
push eax
mov eax, 0x100e0
call fcn.00626ba0
mov eax, dword [0x70a514]
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.005b7ea2
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 0x5d9cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1003c]
push eax
call fcn.005b7f8c
push ebx
lea eax, [ebp - 0x10084]
mov byte [ebp - 4], 1
push str.Error_opening
push eax
call fcn.005a01c7
push 0x6e53dc
push eax
lea eax, [ebp - 0x1006c]
mov byte [ebp - 4], 2
push eax
call fcn.005a015e
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.005a08e4
mov ebx, 0x70a09c
mov ecx, ebx
call fcn.00448620
lea eax, [ebp - 0x10054]
mov ecx, ebx
push eax
call fcn.00448840
lea ecx, [ebp - 0x10054]
call fcn.00448620
lea ecx, [ebp - 0x1006c]
call fcn.00448620
lea ecx, [ebp - 0x10084]
call fcn.00448620
lea ecx, [ebp - 0x1003c]
call fcn.00448620
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 0x5d9e13
lea eax, [ebp - 0x100e0]
push eax
call fcn.005db2d0
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 0x5d9d6a
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1003c]
push eax
call fcn.005b7f8c
pop ecx
pop ecx
mov ecx, 0x70a09c
call fcn.00448620
lea eax, [ebp - 0x1003c]
mov ecx, 0x70a09c
push eax
call fcn.00448840
lea ecx, [ebp - 0x1003c]
call fcn.00448620
push dword [ebp - 0x100e4]
lea eax, [ebp - 0x10024]
push eax
lea eax, [ebp - 0x100e0]
push eax
call fcn.005db302
add esp, 0xc
test bl, bl
jne 0x5d9d97
cmp dword [ebp - 0x100e4], 0
ja 0x5d9d0d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x100e0]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005db228
pop ecx
pop ecx
test bl, bl
jne 0x5d9ce3
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 0x5d9dba
lea eax, [ebp - 0x10024]
mov byte [ebp - 0xfffc], 0
push eax
mov ecx, esi
call fcn.00448670
cmp dword [ebp - 0x100ec], 0
je 0x5d9e21
push dword [ebp - 0x100ec]
call fcn.0062d677
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.00626a7a
leave
ret