Function at 0xdc6aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
test eax, eax
je 0xdc6ac5
mov eax, dword [ebp + 8]
mov dword [eax], 0
test esi, esi
je 0xdc6b10
mov dword [esi + 0x13c4], 0
je 0xdc6b10
mov eax, dword [ebp + 0x10]
test eax, eax
je 0xdc6b10
test edi, edi
js 0xdc6b10
cmp byte [esi + 0x1390], 0
jne 0xdc6b41
test edi, edi
jne 0xdc6b5f
mov eax, dword [ebp + 8]
test eax, eax
je 0xdc6afd
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov dword [esi + 0x13c4], 0
jmp 0xdc6b30
mov eax, dword [ebp + 8]
test eax, eax
je 0xdc6b20
mov edx, dword [ebp + 8]
mov dword [edx], 0xfffffffe
xor edi, edi
test esi, esi
je 0xdc6b30
mov dword [esi + 0x13c4], 0xfffffffe
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
test eax, eax
je 0xdc6b51
mov eax, dword [ebp + 8]
mov dword [eax], 0xffffffff
xor edi, edi
mov dword [esi + 0x13c4], 0xffffffff
jmp 0xdc6b30
mov eax, dword [ebp + 0x10]
lea edx, [esi + 4]
mov dword [esi + 0x13a8], edi
mov dword [ebp - 0x10], edx
mov dword [esi + 0x13a4], eax
lea eax, [esi + 0x1394]
mov dword [ebp - 0x14], eax
jmp 0xdc6bad
mov ebx, dword [esi]
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0xdc6c80
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_ungetc
mov eax, dword [esi + 0x13a8]
test eax, eax
je 0xdc6cc0
mov ebx, dword [esi]
test byte [ebx + 0xc], 0x20
jne 0xdc6cd9
mov eax, dword [esi + 0x1398]
test eax, eax
jne 0xdc6c20
mov dword [esp], ebx
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0xdc6c20
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_ungetc
mov eax, dword [esi]
mov dword [esp + 8], 0x1388
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, eax
mov eax, dword [esi]
test byte [eax + 0xc], 0x20
jne 0xdc6cd9
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x138c], edx
mov dword [esi + 0x1398], edx
mov dword [esi + 0x1394], eax
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call fcn.00dc5bf0
sub esp, 4
test eax, eax
je 0xdc6b80
cmp eax, 4
je 0xdc6c54
mov edx, dword [ebp + 8]
test edx, edx
je 0xdc6c47
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor edi, edi
mov dword [esi + 0x13c4], eax
jmp 0xdc6b30
mov eax, dword [ebp + 8]
test eax, eax
je 0xdc6c64
mov edx, dword [ebp + 8]
mov dword [edx], 4
sub edi, dword [esi + 0x13a8]
mov dword [esi + 0x13c4], 4
jmp 0xdc6b30
mov eax, dword [esi + 0x1398]
test eax, eax
jne 0xdc6b9f
mov eax, dword [esi + 0x13a8]
test eax, eax
je 0xdc6cc0
mov eax, dword [ebp + 8]
test eax, eax
je 0xdc6ca8
mov eax, dword [ebp + 8]
mov dword [eax], 0xfffffff9
xor edi, edi
mov dword [esi + 0x13c4], 0xfffffff9
jmp 0xdc6b30
mov eax, dword [ebp + 8]
test eax, eax
je 0xdc6afd
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0xdc6afd
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0xdc6ce9
mov edx, dword [ebp + 8]
mov dword [edx], 0xfffffffa
xor edi, edi
mov dword [esi + 0x13c4], 0xfffffffa
jmp 0xdc6b30