Function at 0x1010bf80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x102834e0], ebx
call esi
mov dword [0x102834e8], eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], bl
mov ebp, dword [esp + 0xf8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x64]
push eax
push ebp
call fcn.1010cff0
add esp, 8
test eax, eax
jne 0x1010bff4
mov dword [0x102834e0], 0xf
mov dword [0x102834e4], 0x2b7d
call esi
pop edi
pop esi
mov dword [0x102834e8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
lea ecx, [esp + 0x64]
test ecx, ecx
je 0x1010c01f
push 0x10
lea edx, [esp + 0x68]
push 0x1026c2b4
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1010c01f
test byte [esp + 0x96], 1
jne 0x1010c02c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ebx
push ecx
push ebx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.101027c0
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp eax, ebx
je 0x1010c080
mov dword [0x102834e0], 0x31
mov dword [0x102834e4], 0x2b89
call esi
pop edi
pop esi
mov dword [0x102834e8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xa8]
mov dword [esp + 0xa4], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x64]
push eax
push ecx
push ebp
call fcn.1010d230
add esp, 0xc
test eax, eax
jne 0x1010c0d9
mov dword [0x102834e0], 0x14
mov dword [0x102834e4], 0x2b92
call esi
pop edi
pop esi
mov dword [0x102834e8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0xa4]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
push ebp
call fcn.1010d4b0
add esp, 0x10
test eax, eax
jne 0x1010c131
mov dword [0x102834e0], 0x14
mov dword [0x102834e4], 0x2b9a
call esi
pop edi
pop esi
mov dword [0x102834e8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
cmp word [esp + 0x36], bx
je 0x1010c160
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x2ba1
call esi
pop edi
pop esi
mov dword [0x102834e8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
mov edi, dword [esp + 0xfc]
cmp edi, ebx
je 0x1010c1b2
mov ecx, 0x50
lea esi, [esp + 0xa4]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1010c182
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1010c1b2
mov dword [0x102834e0], 0x14
mov dword [0x102834e4], 0x2bab
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x102834e8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
mov edx, dword [esp + 0xc8]
push ebx
push ebx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], 1
cmp eax, ebx
mov dword [esp + 0x14], ebx
jne 0x1010c1e7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xe4
ret
mov ecx, dword [esp + 0x58]
cmp eax, 1
mov dword [esp + 0x10], ecx
jne 0x1010c1fc
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42u.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x1010c23b
mov dword [0x102834e0], 0x21
mov dword [0x102834e4], 0x2bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x102834e8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0xe4
ret
xor eax, eax
jmp 0x1010c243
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jne 0x1010c260
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x20], ebx
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0xfc]
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010c2cb
cmp esi, dword [esp + 0x1c]
jne 0x1010c2e1
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
push edx
push eax
push esi
push ebp
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
call fcn.101102d0
add esp, 0x14
test eax, eax
je 0x1010c2f7
cmp dword [esp + 0x14], ebx
je 0x1010c23f
jmp 0x1010c31a
mov dword [0x102834e0], 0xd
mov dword [0x102834e4], 0x2bdb
jmp 0x1010c30b
mov dword [0x102834e0], 0xd
mov dword [0x102834e4], 0x2be2
jmp 0x1010c30b
mov dword [0x102834e0], 0x1c
mov dword [0x102834e4], 0x2bee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
mov dword [esp + 0x18], ebx
push ebp
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret