Function at 0x41c519d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c9af40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x41caa230]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea ecx, [esi + 0x2a4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x224], ebx
mov dword [ebp - 4], ebx
call fcn.41c84980
lea ecx, [esi + 0x2e8]
call fcn.41c858f0
cmp eax, ebx
je 0x41c51a54
mov dword [ebp - 0x230], eax
push 0x41ca2664
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - method.CGenericException.virtual_0], vtable.CGenericException.0
mov dword [ebp - 0x22c], 0x10fb
call sub.MSVCR71.dll__CxxThrowException
cmp dword [esi + 0x24], ebx
je 0x41c51a8e
mov eax, dword [esi + 8]
mov edi, dword [eax + 0xa]
cmp edi, ebx
je 0x41c51a68
cmp word [edi], bx
jne 0x41c51a82
mov edi, dword [eax + 6]
mov ebx, dword [sym.imp.MSVCR71.dll_wcschr]
push 0x5c
push edi
call ebx
add esp, 8
test eax, eax
je 0x41c51a82
lea edi, [eax + 2]
jmp 0x41c51a71
mov ecx, dword [esi + 0x574]
push edi
call fcn.41c5a1a0
mov ecx, esi
call fcn.41c4fb10
push 0
push eax
lea ecx, [esi + 0x268]
call fcn.41c87920
mov ebx, eax
test ebx, ebx
je 0x41c51ad4
push 0x41ca2664
lea ecx, [ebp - 0x24c]
push ecx
mov dword [ebp - method.CGenericException.virtual_0], vtable.CGenericException.0
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], 0x111c
call sub.MSVCR71.dll__CxxThrowException
mov edx, dword [esi + 0x23c]
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41c51b1b
push 0x41ca2664
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - method.CGenericException.virtual_0], vtable.CGenericException.0
mov dword [ebp - 0x26c], 5
mov dword [ebp - 0x268], 0x1122
call sub.MSVCR71.dll__CxxThrowException
push 0x8000
call fcn.41c671d0
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp - 0x224], edi
jne 0x41c51b63
push 0x41ca2664
lea ecx, [ebp - 0x264]
push ecx
mov dword [ebp - method.CGenericException.virtual_0], vtable.CGenericException.0
mov dword [ebp - 0x260], 2
mov dword [ebp - 0x25c], 0x1127
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [esi + 0x23c]
push 0
mov eax, 0x8000
lea edx, [ebp - 0x220]
push edx
movzx eax, ax
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c51bb6
push 0x41ca2664
lea edx, [ebp - 0x240]
push edx
mov dword [ebp - method.CGenericException.virtual_0], vtable.CGenericException.0
mov dword [ebp - 0x23c], 5
mov dword [ebp - 0x238], 0x1137
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x220]
test ecx, ecx
mov dword [ebp - 0x228], ecx
jbe 0x41c51ce6
movzx eax, cx
cmp ecx, eax
jne 0x41c51c2d
mov eax, dword [esi + 4]
push edi
lea edx, [ebp - 0x216]
push edx
push ecx
mov ecx, dword [eax + 2]
push 0
push ecx
call dword [eax + 0x26]
mov ebx, eax
test ebx, ebx
jne 0x41c51bfc
mov dx, word [ebp - 0x228]
cmp word [ebp - 0x216], dx
je 0x41c51c27
push 0x41ca2664
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - method.CGenericException.virtual_0], vtable.CGenericException.0
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], 0x1144
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [ebp - 0x220]
test ecx, ecx
ja 0x41c51b63
jmp 0x41c51ce6
test edi, edi
mov dword [ebp - 4], 0xffffffff
je 0x41c51cfa
push edi
call fcn.41c67200
add esp, 4
mov edx, dword [esi + 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x30]
push eax
call fcn.41c95cf0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x23c], 0
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, ebx
call fcn.41c9a4ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret