Function at 0x5db307
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65ab74
mov eax, dword fs:[0]
push eax
mov eax, 0x100e0
call fcn.00628320
mov eax, dword [0x70c514]
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.005b96be
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 0x5db44e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1003c]
push eax
call fcn.005b97a8
push ebx
lea eax, [ebp - 0x10084]
mov byte [ebp - 4], 1
push str.Error_opening
push eax
call fcn.005a0eb7
push 0x6e783c
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, 0x70c09c
mov ecx, ebx
call fcn.00449330
lea eax, [ebp - 0x10054]
mov ecx, ebx
push eax
call fcn.00449550
lea ecx, [ebp - 0x10054]
call fcn.00449330
lea ecx, [ebp - 0x1006c]
call fcn.00449330
lea ecx, [ebp - 0x10084]
call fcn.00449330
lea ecx, [ebp - 0x1003c]
call fcn.00449330
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 0x5db563
lea eax, [ebp - 0x100e0]
push eax
call fcn.005dca20
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 0x5db4ba
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1003c]
push eax
call fcn.005b97a8
pop ecx
pop ecx
mov ecx, 0x70c09c
call fcn.00449330
lea eax, [ebp - 0x1003c]
mov ecx, 0x70c09c
push eax
call fcn.00449550
lea ecx, [ebp - 0x1003c]
call fcn.00449330
push dword [ebp - 0x100e4]
lea eax, [ebp - 0x10024]
push eax
lea eax, [ebp - 0x100e0]
push eax
call fcn.005dca52
add esp, 0xc
test bl, bl
jne 0x5db4e7
cmp dword [ebp - 0x100e4], 0
ja 0x5db45d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x100e0]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005dc978
pop ecx
pop ecx
test bl, bl
jne 0x5db433
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 0x5db50a
lea eax, [ebp - 0x10024]
mov byte [ebp - 0xfffc], 0
push eax
mov ecx, esi
call fcn.00449380
cmp dword [ebp - 0x100ec], 0
je 0x5db571
push dword [ebp - 0x100ec]
call fcn.0062edf7
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.006281fa
leave
ret