Function at 0x411770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x66c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], bp
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x18]
push 0xffffffffffffffff
push ebp
mov ecx, ebx
stosw word es:[edi], ax
mov dword [esp + 0x20], ebp
call fcn.00411e40
lea eax, [esp + 0x24]
push 0x103
push eax
mov ecx, esi
call fcn.00411b40
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00411ac0
test eax, eax
je 0x411a17
lea edx, [esp + 0x24]
push 0x42ee20
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [esp + 0x1c], esi
je 0x411a17
push esi
push 4
lea eax, [esp + 0x20]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 4
jne 0x411a0d
cmp dword [esp + 0x18], 1
jne 0x411a0d
mov ecx, 0x114
xor eax, eax
lea edi, [esp + 0x22c]
push esi
rep stosd dword es:[edi], eax
push 0x450
lea ecx, [esp + 0x234]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 0x450
jne 0x411a0d
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov esi, ecx
mov dword [esp + 0x10], esi
lea ebp, [esi + 1]
test ebp, ebp
jne 0x41187c
test eax, eax
je 0x41186f
push eax
mov dword [esp + 0x14], ecx
call fcn.0041eb90
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x4119e3
test eax, eax
jne 0x4118bc
lea eax, [ebp + ebp*2]
shl eax, 3
sub eax, ebp
lea edi, [eax + eax*2]
shl edi, 4
push edi
call sub.MFC42u.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x4119e3
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x411914
cmp ecx, ebp
jge 0x411904
lea edx, [ecx + ecx*2]
mov eax, ebp
shl edx, 3
sub edx, ecx
sub eax, ecx
mov ecx, dword [ebx + 4]
lea edi, [edx + edx*2]
shl edi, 4
add edi, ecx
lea ecx, [eax + eax*2]
shl ecx, 3
sub ecx, eax
xor eax, eax
lea ecx, [ecx + ecx*2]
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 8], ebp
jmp 0x4119e3
jle 0x41190c
sub ecx, ebp
mov dword [esp + 0x10], ecx
mov dword [ebx + 8], ebp
jmp 0x4119e3
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x41193e
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x411932
mov eax, 4
jmp 0x41193e
cmp eax, 0x400
jle 0x41193e
mov eax, 0x400
lea ecx, [edi + eax]
cmp ebp, ecx
jge 0x41194b
mov dword [esp + 0x14], ecx
jmp 0x411951
mov dword [esp + 0x14], ebp
mov ecx, ebp
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 4
push eax
call sub.MFC42u.DLL_operatornew
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, eax
mov dword [esp + 0x24], eax
lea ecx, [edx + edx*2]
shl ecx, 3
sub ecx, edx
lea ecx, [ecx + ecx*2]
shl ecx, 4
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 esi, dword [ebx + 8]
mov ecx, ebp
sub ecx, esi
lea edx, [esi + esi*2]
shl edx, 3
sub edx, esi
lea edi, [edx + edx*2]
shl edi, 4
add edi, eax
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
push eax
call fcn.0041eb90
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add esp, 8
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], edx
lea eax, [esi + esi*2]
mov ecx, 0x114
shl eax, 3
sub eax, esi
lea esi, [esp + 0x22c]
lea edi, [eax + eax*2]
mov eax, dword [ebx + 4]
shl edi, 4
add edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
jmp 0x411810
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x66c
ret