Function at 0x1001bb10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x1007a200]
xor eax, esp
mov dword [esp + 0x630], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x103
lea edx, [esp + 0x535]
push 0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x53c], 0
call fcn.10049f60
add esp, 0xc
lea ebx, [esi + 0x28]
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 8], 0
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
mov dword [esp + 0x14], eax
jne 0x1001bb9e
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [esp + 0x18]
push 0
push 0
push 0x104
lea ecx, [esp + 0x53c]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
jbe 0x1001bbf2
jmp 0x1001bbd0
lea ecx, [esp + 0x530]
push edi
push ecx
call fcn.10049c1b
add esp, 8
test eax, eax
je 0x1001bc19
mov edx, dword [esp + 0x14]
inc ebx
add edi, 0x48
cmp ebx, dword [edx + 0xc]
jb 0x1001bbd0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80030002
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 0x2c]
push ecx
call fcn.10048f20
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001bc52
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18
cmp dword [esi + 0xc], 0
je 0x1001bcc1
mov eax, dword [edi + 0x28]
xor ecx, ecx
push ecx
lea edx, [esp + 0x24]
push edx
push ecx
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, dword [edi + 0x2c]
mov edx, dword [esi + 0xc]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001bcd5
push ebx
call fcn.10048cb3
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
add edx, dword [esi + 0x14]
push ecx
push edx
push ebx
call fcn.10049fe0
add esp, 0xc
test byte [edi + 0x3c], 2
je 0x1001bd3b
push 0xfe
lea eax, [esp + 0x435]
push 0
push eax
mov byte [esp + 0x43c], 0
call fcn.10049f60
mov ecx, dword [esp + 0x20]
add ecx, 0x14
push ecx
lea edx, [esp + 0x38]
push 0x80
push edx
call fcn.10042a40
movzx edx, byte [edi + 0x47]
lea eax, [esp + 0x448]
push eax
mov ecx, eax
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.100628c0
mov ecx, dword [edi + 0x2c]
push ebx
push ebx
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.100628c0
add esp, 0x38
test byte [edi + 0x3c], 1
je 0x1001be29
mov eax, dword [edi + 0x30]
push eax
call fcn.10048f20
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001bd87
push ebx
call fcn.10048cb3
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18
movzx ecx, byte [edi + 0x46]
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x2c]
push ecx
mov dword [esp + 0x18], edx
lea edx, [edi + 0x40]
push edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.10042a70
mov edx, dword [edi + 0x30]
call fcn.1001f290
cmp eax, dword [edi + 0x34]
je 0x1001bdf2
push esi
call fcn.10048cb3
push ebx
call fcn.10048cb3
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18
push ebx
call fcn.10048cb3
push 0x14
call fcn.10048937
add esp, 8
test eax, eax
je 0x1001be95
mov edi, dword [edi + 0x30]
mov dword [eax], vtable.CMemStream.0
mov dword [eax + 4], 1
mov dword [eax + 0x10], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], 0
jmp 0x1001be97
mov edx, dword [edi + 0x30]
mov esi, ebx
call fcn.1001f290
cmp eax, dword [edi + 0x34]
je 0x1001be68
push ebx
call fcn.10048cb3
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18
push 0x14
call fcn.10048937
add esp, 4
test eax, eax
je 0x1001be95
mov edi, dword [edi + 0x30]
mov dword [eax], vtable.CMemStream.0
mov dword [eax + 4], 1
mov dword [eax + 0x10], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 0
jmp 0x1001be97
xor eax, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push edx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1004738d
mov esp, ebp
pop ebp
ret 0x18