Function at 0x40cc00
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cdf3
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x495014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
cmp byte [ebx + 0x18], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
je 0x40cc59
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
mov dword [ebx + 0x14], 6
call fcn.00403bd0
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40cf7b
mov ecx, esi
call fcn.00403bd0
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40cd86
mov dword [ebp - 4], 0
push 0x2c
call fcn.00436e50
mov edi, eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
lea esi, [edi + 0xc]
push esi
push 0x20
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_RC::RCEvent_.0
call fcn.00402140
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea ecx, [eax + 8]
mov dword [eax], 0
mov byte [eax + 4], 0
call fcn.00403ac0
mov byte [ebp - 4], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.0040c6f0
mov eax, 1
mov dword [ebp - 0x1c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40cd43
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40cd43
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40cd43
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
call fcn.00403990
push eax
lea ecx, [ebp - 0x44]
call fcn.00403a70
mov dword [ebp - 4], 3
sub esp, 8
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.0041b6f0
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004039d0
cmp byte [ebp - 0xd], 0
je 0x40cef4
imul esi, dword [ebx + 0x14], 0x80c
mov ecx, dword [ebp - 0x24]
add esi, 0x814
call fcn.00403990
push esi
sub esp, 8
push eax
push ecx
mov ecx, ebx
call fcn.004201a0
mov byte [ebp - 0xd], al
test al, al
je 0x40cef4
imul esi, dword [ebx + 0x14], 0x80c
mov eax, dword [ebx]
mov byte [ebp - 0xd], 0
add esi, 0x814
cmp dword [ebx + 8], 0xb7
jne 0x40ce5d
test eax, eax
je 0x40cef0
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ecx, ecx
je 0x40cdf4
push ecx
call edi
mov eax, dword [ebx]
mov dword [ebx + 4], 0
push esi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
je 0x40cef0
mov ecx, eax
mov dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x40ce4d
cmp dword [ecx], 0x35343332
jne 0x40ce3f
cmp dword [ecx + 4], 1
jne 0x40ce3f
cmp dword [ecx + 8], 0
jne 0x40ce3f
mov eax, dword [ebx + 0x14]
lea eax, [eax*8 + 0x10]
cmp dword [ecx + 0xc], eax
jne 0x40ce3f
mov byte [ebp - 0xd], 1
jmp 0x40ce4d
test ecx, ecx
je 0x40ce4d
push ecx
call edi
mov dword [ebx + 4], 0
mov al, byte [ebp - 0xd]
test al, al
jne 0x40cf64
jmp 0x40cef4
test eax, eax
je 0x40cef0
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ecx, ecx
je 0x40ce7e
push ecx
call edi
mov eax, dword [ebx]
mov dword [ebx + 4], 0
push esi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
je 0x40cef0
mov dword [ebx + 0x1c], eax
xor edi, edi
mov dword [eax], 0x35343332
mov eax, dword [ebx + 0x1c]
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x1c]
mov dword [eax + 8], 0
mov eax, dword [ebx + 0x14]
lea ecx, [eax*8 + 0x10]
mov eax, dword [ebx + 0x1c]
mov dword [eax + 0xc], ecx
cmp dword [ebx + 0x14], edi
jbe 0x40cee7
mov esi, 0x14
nop dword [eax]
mov eax, dword [ebx + 0x1c]
push 0
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc edi
add esi, 4
cmp edi, dword [ebx + 0x14]
jb 0x40ced0
mov byte [ebp - 0xd], 1
jmp 0x40ce4d
mov byte [ebp - 0xd], 0
cmp dword [ebx], 0
je 0x40cf00
mov ecx, ebx
call fcn.00420300
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x40cf61
cmp dword [ecx], 0
je 0x40cf11
call fcn.0041b640
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0xc]
call fcn.0040c6f0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40cf61
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40cf61
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40cf61
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0xd]
mov byte [ebx + 0x18], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc