Function at 0x40bf90
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae93
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x493014]
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 0x40bfe9
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.00403bb0
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40c30b
mov ecx, esi
call fcn.00403bb0
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40c116
mov dword [ebp - 4], 0
push 0x2c
call fcn.00434f50
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.00402120
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea ecx, [eax + 8]
mov dword [eax], 0
mov byte [eax + 4], 0
call fcn.00403aa0
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.0040ba80
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 0x40c0d3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c0d3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c0d3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
call fcn.00403970
push eax
lea ecx, [ebp - 0x44]
call fcn.00403a50
mov dword [ebp - 4], 3
sub esp, 8
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00419bc0
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004039b0
cmp byte [ebp - 0xd], 0
je 0x40c284
imul esi, dword [ebx + 0x14], 0x80c
mov ecx, dword [ebp - 0x24]
add esi, 0x814
call fcn.00403970
push esi
sub esp, 8
push eax
push ecx
mov ecx, ebx
call fcn.0041e670
mov byte [ebp - 0xd], al
test al, al
je 0x40c284
imul esi, dword [ebx + 0x14], 0x80c
mov eax, dword [ebx]
mov byte [ebp - 0xd], 0
add esi, 0x814
cmp dword [ebx + 8], 0xb7
jne 0x40c1ed
test eax, eax
je 0x40c280
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ecx, ecx
je 0x40c184
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 0x40c280
mov ecx, eax
mov dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x40c1dd
cmp dword [ecx], 0x35343332
jne 0x40c1cf
cmp dword [ecx + 4], 1
jne 0x40c1cf
cmp dword [ecx + 8], 0
jne 0x40c1cf
mov eax, dword [ebx + 0x14]
lea eax, [eax*8 + 0x10]
cmp dword [ecx + 0xc], eax
jne 0x40c1cf
mov byte [ebp - 0xd], 1
jmp 0x40c1dd
test ecx, ecx
je 0x40c1dd
push ecx
call edi
mov dword [ebx + 4], 0
mov al, byte [ebp - 0xd]
test al, al
jne 0x40c2f4
jmp 0x40c284
test eax, eax
je 0x40c280
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ecx, ecx
je 0x40c20e
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 0x40c280
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 0x40c277
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 0x40c260
mov byte [ebp - 0xd], 1
jmp 0x40c1dd
mov byte [ebp - 0xd], 0
cmp dword [ebx], 0
je 0x40c290
mov ecx, ebx
call fcn.0041e7d0
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x40c2f1
cmp dword [ecx], 0
je 0x40c2a1
call fcn.00419b10
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.0040ba80
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40c2f1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c2f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40c2f1
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