Function at 0x1000dbd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, ecx
mov dword [esp + 0x20], ebp
mov al, byte [ebp + 0x12828]
test al, al
jne 0x1000dc0c
mov ecx, dword [ebp + 4]
lea eax, [ebp + 0xc]
push ecx
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x1000dc42
push str.Read_Error
mov ecx, ebp
call fcn.1000d6c0
jmp 0x1000dc42
cmp dword [ebp + 0x12844], 4
jae 0x1000dc21
push str.Read_Error
mov ecx, ebp
call fcn.1000d6c0
mov eax, dword [ebp + 0x12848]
mov edx, dword [ebp + 0x12840]
mov ecx, dword [edx + eax]
add eax, 4
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x1283c], ecx
mov dword [ebp + 0x12848], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000df0c
push esi
push edi
mov ecx, ebp
call fcn.1000d920
mov ecx, ebp
call fcn.1000d760
lea edi, [ebp + 0x18]
mov ecx, 0x3f1
mov eax, 0x20202020
mov esi, 0xfc4
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], esi
jbe 0x1000defb
push ebx
jmp 0x1000dc89
mov esi, dword [esp + 0x14]
mov ecx, ebp
call fcn.1000d950
mov ebx, eax
cmp ebx, 0x100
jge 0x1000dce6
mov al, byte [ebp + 0x12828]
test al, al
jne 0x1000dcb4
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_putc]
add esp, 8
jmp 0x1000dcd1
mov eax, dword [ebp + 0x12834]
lea ecx, [ebp + 0x1282c]
lea edx, [esp + 0x13]
mov byte [esp + 0x13], bl
push edx
push 1
push eax
call fcn.1000e1e0
mov byte [esi + ebp + 0x18], bl
inc esi
and esi, 0xfff
inc edi
mov dword [esp + 0x14], esi
jmp 0x1000ded2
mov ecx, ebp
call fcn.1000da90
mov ecx, eax
mov eax, esi
sub eax, ecx
add ebx, 0xffffff03
dec eax
xor ecx, ecx
and eax, 0xfff
mov dword [esp + 0x30], ebx
test ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jle 0x1000ded2
add edi, ebx
mov dword [esp + 0x34], edi
jmp 0x1000dd21
mov eax, dword [esp + 0x1c]
add ecx, eax
mov al, byte [ebp + 0x12828]
and ecx, 0xfff
xor ebx, ebx
test al, al
mov bl, byte [ecx + ebp + 0x18]
mov dword [esp + 0x28], ebx
jne 0x1000dd50
mov edx, dword [ebp + 8]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_putc]
add esp, 8
jmp 0x1000dea7
mov eax, dword [ebp + 0x12834]
mov ecx, dword [ebp + 0x12838]
lea edi, [ebp + 0x1282c]
sub ecx, eax
cmp ecx, 1
mov byte [esp + 0x13], bl
mov esi, eax
jae 0x1000de2c
mov edx, dword [edi + 4]
test edx, edx
je 0x1000dd83
mov ecx, eax
sub ecx, edx
cmp ecx, 1
ja 0x1000dd88
mov ecx, 1
test edx, edx
jne 0x1000dd90
xor eax, eax
jmp 0x1000dd92
sub eax, edx
add eax, ecx
test eax, eax
mov dword [esp + 0x24], eax
jge 0x1000dd9e
xor eax, eax
push eax
call sub.MFC42.DLL_operatornew
mov ebp, dword [edi + 4]
add esp, 4
cmp ebp, esi
mov dword [esp + 0x20], eax
mov ebx, eax
je 0x1000ddc4
push ebp
push ebx
call fcn.1000e410
add esp, 8
inc ebx
inc ebp
cmp ebp, esi
jne 0x1000ddb4
lea edx, [esp + 0x13]
push edx
push ebx
call fcn.1000e410
mov ebp, dword [edi + 8]
add esp, 8
cmp esi, ebp
je 0x1000ddea
inc ebx
push esi
push ebx
call fcn.1000e410
add esp, 8
inc esi
inc ebx
cmp esi, ebp
jne 0x1000ddda
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x3c], eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 4
lea edx, [eax + ecx]
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [edi + 0xc], edx
jne 0x1000de13
xor edx, edx
jmp 0x1000de18
mov edx, dword [edi + 8]
sub edx, ecx
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
lea ecx, [edx + eax + 1]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
jmp 0x1000dea7
mov ecx, eax
sub ecx, esi
cmp ecx, 1
jae 0x1000de6c
lea edx, [esi + 1]
mov ecx, edi
push edx
push eax
push esi
call fcn.1000e3b0
mov eax, dword [edi + 8]
mov edx, esi
sub edx, eax
lea ecx, [esp + 0x13]
inc edx
push ecx
push edx
push eax
mov ecx, edi
call fcn.1000e3e0
mov eax, dword [edi + 8]
cmp esi, eax
je 0x1000dea4
mov cl, byte [esp + 0x13]
mov byte [esi], cl
inc esi
cmp esi, eax
jne 0x1000de5f
jmp 0x1000dea4
lea ecx, [eax - 1]
push eax
push eax
mov dword [esp + 0x40], ecx
push ecx
mov ecx, edi
call fcn.1000e3b0
mov ecx, dword [edi + 8]
lea eax, [ecx - 1]
cmp esi, eax
je 0x1000de92
mov dl, byte [eax - 1]
dec eax
dec ecx
cmp eax, esi
mov byte [ecx], dl
jne 0x1000de87
lea eax, [esi + 1]
cmp esi, eax
je 0x1000dea4
mov cl, byte [esp + 0x13]
mov byte [esi], cl
inc esi
cmp esi, eax
jne 0x1000de99
inc dword [edi + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [eax + ebp + 0x18], bl
inc eax
and eax, 0xfff
inc ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x1000dd1d
mov edi, dword [esp + 0x34]
cmp edi, dword [ebp + 0x14]
jbe 0x1000def1
push edi
push str._12lu_r
call dword [sym.imp.MSVCRT.dll_printf]
mov eax, dword [ebp + 0x14]
add esp, 8
add eax, 0x400
mov dword [ebp + 0x14], eax
cmp edi, dword [ebp + 0xc]
jb 0x1000dc85
pop ebx
push edi
push str._12lu_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x2c
ret