Function at 0x401181
Capabilities:
Read file on windows

Disassembly:
jmp 0x405fb0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423a90
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0xc
mov edx, dword [esp + 0x1c]
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x28]
push esi
mov dword [eax], ebx
push edi
mov dword [ecx], ebx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4060ba
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [ebp + 0x1f988]
push 0x4e20
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4060a9
lea esi, [ebp + 0x20430]
lea edi, [ebp + 0x608]
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
cmp eax, edx
jne 0x406073
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x406073
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jg 0x4060d2
cmp dword [esi], 0
je 0x406123
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00421f80
inc ebx
add esi, 4
add edi, 0xff
cmp ebx, 0x1f4
jl 0x40602f
mov edx, dword [ebp + 0x1f988]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00421f80
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov eax, dword [ebp + ebx*4 + 0x20430]
mov esi, dword [esp + 0x34]
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x34]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x4060fe
mov eax, dword [ebp + 0x1f988]
push eax
jmp 0x4061f0
mov ecx, dword [esi]
mov esi, dword [ebp + ebx*4 + 0x1fc60]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x1f988]
push eax
jmp 0x4063b5
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.004013ca
mov edx, dword [esp + 0x10]
mov esi, eax
push 0x8000
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCRT.dll__open]
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40615b
mov eax, dword [ebp + 0x1f988]
push eax
jmp 0x4061f0
push edi
call dword [sym.imp.MSVCRT.dll__filelength]
mov ecx, dword [esp + 0x38]
add esp, 4
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x406183
push edi
call dword [sym.imp.MSVCRT.dll__close]
mov ecx, dword [ebp + 0x1f988]
add esp, 4
push ecx
jmp 0x4061f0
add eax, esi
push eax
mov dword [ecx], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x34]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x4061b7
push edi
call dword [sym.imp.MSVCRT.dll__close]
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [eax], 0
mov ecx, dword [ebp + 0x1f988]
push ecx
jmp 0x4061f0
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
push ecx
push eax
push edi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
test eax, eax
jg 0x406209
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push edi
mov dword [esi], 0
call dword [sym.imp.MSVCRT.dll__close]
mov edx, dword [ebp + 0x1f988]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00421f80
jmp 0x4060a9
push edi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
test esi, esi
jle 0x406241
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, esi
lea esi, [ebp + 0x1fb1c]
mov edi, dword [eax]
sub edi, edx
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x34]
mov ecx, dword [esi]
and ecx, 0x8000000f
jns 0x406254
dec ecx
or ecx, 0xfffffff0
inc ecx
je 0x406268
mov edx, dword [ebp + 0x1f988]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40630a
mov ecx, ebp
call fcn.0040181b
test eax, eax
jne 0x406285
mov eax, dword [ebp + 0x1f988]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40630a
mov ecx, dword [esi]
add ecx, 0x20
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x4062ac
mov edx, dword [ebp + 0x1f988]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40630a
push 0
lea eax, [ebp + 0x20c04]
push 2
lea esi, [ebp + 0xcc]
push eax
push 1
push 1
mov ecx, esi
mov dword [ebp + ebx*4 + 0x1fc60], edi
call fcn.00401159
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edi
mov edx, dword [ecx]
mov ecx, dword [eax]
push edx
push ecx
mov ecx, esi
call fcn.004012e9
test eax, eax
jge 0x406333
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp + 0x1f988]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp + ebx*4 + 0x1fc60], 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00421f80
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00421f80
mov eax, 0x2710
jmp 0x4060bd
mov esi, dword [ebp + ebx*4 + 0x1fc60]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [ebp + ebx*4 + 0x1fc60], ecx
mov dword [edx], eax
mov edx, dword [esp + 0x30]
mov esi, dword [ebp + ebx*4 + 0x1fc60]
mov ecx, eax
mov edi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + ebx*4 + 0x20430], eax
mov eax, ebx
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
shl eax, 8
sub eax, ebx
lea edx, [eax + ebp + 0x608]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1f988]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00421f80
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00421f80
mov eax, ebx
jmp 0x4060bd