Function at 0x46a450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b96d4
mov eax, dword fs:[0]
push eax
sub esp, 0x100
push ebx
push esi
push edi
mov eax, dword [0x4e44b4]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x18]
push esi
call fcn.00461430
test al, al
je 0x46ac1b
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], 4
mov dword [esp + 0x6c], vtable.CObjectVector_class_CMyComPtr_struct_ISequentialInStream__.0
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x11c], ebx
call fcn.0046b3d0
cmp edi, ebx
mov byte [esp + 0x118], 1
je 0x46a4db
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x46a4ee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esi + 0x30], ebx
mov dword [esp + 0x80], edi
jle 0x46a60f
push 0x18
call fcn.00495ce0
add esp, 4
test eax, eax
je 0x46a51d
mov dword [eax + 4], 0
mov dword [eax], vtable.CLockedSequentialInStreamImp.0
mov edi, eax
jmp 0x46a51f
xor edi, edi
test edi, edi
mov dword [esp + 0x54], edi
je 0x46a52f
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov byte [esp + 0x118], 2
lea edx, [esp + 0x80]
mov dword [edi + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
mov esi, dword [eax + ebx*8]
mov eax, dword [eax + ebx*8 + 4]
add ecx, esi
adc edx, eax
push 0x28
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
call fcn.00495ce0
add esp, 4
test eax, eax
je 0x46a581
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], vtable.CLimitedSequentialInStream.0
mov dword [eax + 8], ecx
mov esi, eax
jmp 0x46a583
xor esi, esi
test esi, esi
mov dword [esp + 0x20], esi
je 0x46a593
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov byte [esp + 0x118], 3
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x46a5b2
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 0x14]
mov dword [esi + 8], edi
mov eax, dword [ecx + ebx*8]
mov ecx, dword [ecx + ebx*8 + 4]
mov dword [esi + 0x14], ecx
lea ecx, [esp + 0x20]
mov dword [esi + 0x10], eax
xor eax, eax
push ecx
lea ecx, [esp + 0x70]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
call fcn.0046b950
mov byte [esp + 0x118], 2
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov byte [esp + 0x118], 1
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, dword [ebp + 0x18]
add ebx, 1
cmp ebx, dword [eax + 0x30]
jl 0x46a4fe
mov esi, eax
mov ecx, dword [esi + 8]
xor eax, eax
mov dword [esp + 0x3c], ecx
mov ecx, 8
mov edx, 4
mov edi, vtable.CRecordVector_unsigned_int_.0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0x9c], vtable.CRecordVector_struct_NCoderMixer::CCoderStreamsInfo_.0
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xb0], vtable.CRecordVector_struct_NCoderMixer::CBindPair_.0
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
mov dword [esp + 0xc4], edi
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], edx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
mov dword [esp + 0xec], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
mov byte [esp + 0x118], dl
lea edx, [esp + 0x9c]
push edx
push esi
call fcn.0046a0c0
mov edi, dword [ebp + 8]
add esp, 8
cmp byte [edi], 0
je 0x46a722
lea eax, [edi + 4]
push eax
lea ebx, [esp + 0xa0]
call fcn.0046a310
add esp, 4
test al, al
sete al
test al, al
je 0x46a7f9
mov eax, dword [edi + 0x80]
mov edx, dword [edi + 0x78]
mov edx, dword [edx + 4]
lea ecx, [edi + 0x78]
push eax
xor ebx, ebx
push ebx
call edx
mov eax, dword [edi + 0x74]
cmp eax, ebx
je 0x46a749
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x74], ebx
cmp byte [edi + 0x68], 0
je 0x46a799
push 0x88
call fcn.00495ce0
add esp, 4
cmp eax, ebx
je 0x46a767
call fcn.0046b450
mov ebx, eax
test ebx, ebx
mov dword [edi + 0x6c], ebx
je 0x46a776
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov eax, dword [edi + 0x74]
test eax, eax
je 0x46a785
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x74], ebx
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x46a794
add eax, 4
jmp 0x46a796
xor eax, eax
mov dword [edi + 0x70], eax
mov ecx, dword [edi + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x9c]
push eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x46ab43
cmp dword [esp + 0x3c], eax
mov dword [esp + 0x24], eax
jg 0x46a9a3
lea esi, [edi + 4]
lea eax, [esp + 0x9c]
call fcn.0046b4f0
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x50]
mov edx, dword [edx + 4]
add esi, 0x50
push eax
push 0
mov ecx, esi
call edx
lea eax, [esp + 0xec]
push eax
mov eax, esi
call fcn.0046bd00
mov esi, dword [ebp + 0x18]
mov byte [edi], 1
mov ecx, dword [edi + 0x70]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
xor ebx, ebx
call eax
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x54], ebx
jle 0x46b13d
mov dword [esp + 0x24], ebx
nop
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x54]
mov esi, dword [ecx + edx*4]
mov eax, dword [edi + 0x84]
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + eax]
mov dword [esp + 0x14], 0
mov byte [esp + 0x118], 8
mov eax, dword [edi]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x14]
push ecx
push 0x4d1d20
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46a889
mov edx, dword [esi + 0xc]
cmp edx, 0xffffffff
ja 0x46afd8
mov ecx, dword [esi + 0x10]
mov ebx, dword [eax]
push edx
push ecx
push eax
mov eax, dword [ebx + 0xc]
call eax
mov ebx, eax
test ebx, ebx
jne 0x46b058
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x118], 4
je 0x46a89d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [ebp + 0x24], 0
je 0x46a8fc
mov dword [esp + 0x14], 0
mov byte [esp + 0x118], 9
mov edi, dword [edi]
mov eax, dword [edi]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push 0x4d1d30
push edi
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46a8e8
mov edx, dword [ebp + 0x28]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
test edi, edi
jne 0x46b0b8
mov eax, dword [esp + 0x14]
test eax, eax
mov byte [esp + 0x118], 4
je 0x46a8fc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
xor eax, eax
mov edx, 4
add dword [esp + 0x24], edx
mov ecx, vtable.CRecordVector_unsigned_long_long_unsigned___int64__const__.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x40], ecx
lea esi, [esp + 0x28]
mov byte [esp + 0x118], 0xb
call fcn.0045c0b0
mov edi, ebx
lea esi, [esp + 0x40]
call fcn.0045c0b0
test ebx, ebx
jbe 0x46acf8
mov dword [esp + 0x14], ebx
mov ecx, 1
jmp 0x46a970
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x18]
lea ebx, [edx + eax*8]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x48], eax
jne 0x46acdb
cmp eax, 0x40
jl 0x46acc0
mov ecx, eax
shr ecx, 2
jmp 0x46acca
mov esi, dword [ebp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0xc]
mov esi, dword [edx + eax*4]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x11c], 6
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.004605c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x46ab13
mov dword [esp + 0x14], eax
mov byte [esp + 0x118], 7
mov ebx, dword [esp + 0x1c]
mov eax, 1
cmp dword [esi + 0x14], eax
jne 0x46aa5f
cmp dword [esi + 0x18], eax
jne 0x46aa5f
cmp dword [esp + 0x18], 0
je 0x46abb0
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
cmp byte [edi + 0x68], 0
mov dword [esp + 0x14], esi
je 0x46aaa8
mov esi, dword [edi + 0x6c]
call fcn.0046cef0
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x80]
mov eax, dword [esp + 0x18]
mov esi, dword [edx + ecx*4 - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46aa56
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
jmp 0x46aaa8
test ebx, ebx
je 0x46ac38
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push ebx
call edx
cmp byte [edi + 0x68], 0
mov dword [esp + 0x14], ebx
je 0x46aaa8
mov esi, dword [edi + 0x6c]
call fcn.0046cef0
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
mov edx, dword [ebx]
mov esi, dword [ecx + eax*4 - 4]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x46aaa5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x18], ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x78]
call fcn.0046b950
mov byte [esp + 0x118], 6
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46aacd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test ebx, ebx
mov byte [esp + 0x118], 5
je 0x46aae1
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov byte [esp + 0x118], 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46aaf9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
jl 0x46a9a0
jmp 0x46a7c2
mov byte [esp + 0x118], 5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46ab2b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x118], 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46ab43
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x11c], 1
call fcn.00463ea0
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x46ab81
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x11c], 0xffffffff
call fcn.0046b570
mov eax, ebx
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov byte [esp + 0x118], 5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46abc8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x11c], 1
call fcn.00463ea0
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x46ac06
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x11c], 0xffffffff
call fcn.0046b570
mov eax, 0x80004001
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov byte [esp + 0x118], 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46ac50
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x11c], 1
call fcn.00463ea0
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x46ac8e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x11c], 0xffffffff
call fcn.0046b570
mov eax, 0x80004001
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp eax, 8
jl 0x46acca
mov ecx, 8
lea edi, [eax + ecx]
lea esi, [esp + 0x40]
call fcn.0045c0b0
mov ecx, 1
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
add dword [esp + 0x18], ecx
mov dword [edx + eax*4], ebx
add dword [esp + 0x48], ecx
sub dword [esp + 0x14], ecx
jne 0x46a970
cmp dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
jbe 0x46af3b
mov edi, dword [ebp + 0x18]
mov edx, dword [edi + 0x1c]
xor eax, eax
test edx, edx
jle 0x46ad32
mov esi, dword [edi + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, esi
cmp dword [ecx], ebx
je 0x46ae82
add eax, 1
add ecx, 8
cmp eax, edx
jl 0x46ad20
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x30]
xor edi, edi
xor ebx, ebx
cmp ecx, edi
jle 0x46ad59
mov eax, dword [eax + 0x34]
mov edx, dword [esp + 0x1c]
cmp dword [eax], edx
je 0x46aed2
add ebx, 1
add eax, 4
cmp ebx, ecx
jl 0x46ad47
mov byte [esp + 0x118], 0xa
mov edx, dword [esp + 0x48]
push edx
mov esi, vtable.CBaseRecordVector.0
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], esi
call dword [0x4d1b6c]
mov eax, dword [esp + 0x4c]
push eax
call fcn.00495fd1
mov byte [esp + 0x11c], 4
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], esi
call dword [0x4d1b6c]
mov edx, dword [esp + 0x34]
push edx
call fcn.00495fd1
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov byte [esp + 0x118], 0xc
mov eax, dword [esp + 0xf4]
push eax
push edi
lea ecx, [esp + 0xf4]
mov dword [esp + 0xf4], esi
call dword [0x4d1b6c]
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.00495fd1
add esp, 4
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf8], edi
mov dword [esp + 0xfc], edi
mov byte [esp + 0x11c], 1
call fcn.00461260
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
cmp eax, edi
je 0x46ae50
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x11c], 0xffffffff
call fcn.0046b570
mov eax, 0x80004005
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
test eax, eax
jl 0x46ad32
mov ecx, dword [esi + eax*8 + 4]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x30], eax
mov edx, dword [edi + 0x48]
lea ebx, [edx + ecx*8]
jne 0x46aec5
cmp eax, 0x40
mov ecx, 1
jl 0x46aeaf
mov ecx, eax
shr ecx, 2
jmp 0x46aeb9
cmp eax, 8
jl 0x46aeb9
mov ecx, 8
lea edi, [eax + ecx]
lea esi, [esp + 0x28]
call fcn.0045c0b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [eax + ecx*4], ebx
jmp 0x46af1c
cmp ebx, edi
jl 0x46ad59
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x30], ecx
jne 0x46af0b
cmp ecx, 0x40
mov eax, 1
jl 0x46aef5
mov eax, ecx
shr eax, 2
jmp 0x46aeff
cmp ecx, 8
jl 0x46aeff
mov eax, 8
lea edi, [ecx + eax]
lea esi, [esp + 0x28]
call fcn.0045c0b0
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x34]
lea eax, [edx + ebx*8]
mov edx, dword [esp + 0x30]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x30], 1
add dword [esp + 0x1c], 1
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jb 0x46ad0b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
mov eax, dword [esp + 0x4c]
mov edx, dword [ecx]
mov esi, dword [esp + 0x54]
mov edx, dword [edx + 8]
push eax
mov eax, dword [esp + 0x38]
push eax
push esi
call edx
mov byte [esp + 0x118], 0xa
mov eax, dword [esp + 0x48]
push eax
xor ebx, ebx
mov edi, vtable.CBaseRecordVector.0
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edi
call dword [0x4d1b6c]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00495fd1
mov byte [esp + 0x11c], 4
mov edx, dword [esp + 0x34]
add esp, 4
push edx
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], edi
call dword [0x4d1b6c]
mov eax, dword [esp + 0x34]
push eax
call fcn.00495fd1
mov edi, dword [ebp + 8]
add esi, 1
add esp, 4
cmp esi, dword [esp + 0x3c]
mov dword [esp + 0x54], esi
jge 0x46b13d
mov esi, dword [ebp + 0x18]
jmp 0x46a820
mov byte [esp + 0x118], 4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x11c], 1
call fcn.00463ea0
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x46b026
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x11c], 0xffffffff
call fcn.0046b570
mov eax, 0x80004001
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov byte [esp + 0x118], 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b070
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x11c], 1
call fcn.00463ea0
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x46b0ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x6c]
push eax
jmp 0x46ab86
mov byte [esp + 0x118], 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b0d0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0x11c], 1
call fcn.00463ea0
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x46b10e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x11c], 0xffffffff
call fcn.0046b570
mov eax, edi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ebx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xe4]
mov edx, dword [ecx]
xor eax, eax
test ebx, ebx
jbe 0x46b172
mov esi, dword [esp + 0xa8]
add esi, 4
lea ecx, [ecx]
mov ecx, dword [esi]
cmp edx, ecx
jb 0x46b189
add eax, 1
sub edx, ecx
add esi, 8
cmp eax, ebx
jb 0x46b160
push 0x4d9850
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 1
call fcn.0049e29b
cmp byte [edi + 0x68], 0
je 0x46b195
mov edi, dword [edi + 0x6c]
mov dword [edi + 0x70], eax
cmp dword [esp + 0x3c], 0
jne 0x46b209
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0x11c], 1
call fcn.00463ea0
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x46b1da
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x11c], 0xffffffff
call fcn.0046b570
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 4
mov dword [esp + 0x58], vtable.CRecordVector_struct_ISequentialInStream__.0
mov byte [esp + 0x118], 0xd
mov edi, dword [esp + 0x74]
lea esi, [esp + 0x58]
call fcn.0045c0b0
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x46b2a1
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x60], eax
mov dword [esp + 0x20], edx
jne 0x46b282
cmp eax, 0x40
mov ecx, 1
jl 0x46b26c
mov ecx, eax
shr ecx, 2
jmp 0x46b276
cmp eax, 8
jl 0x46b276
mov ecx, 8
lea edi, [eax + ecx]
lea esi, [esp + 0x58]
call fcn.0045c0b0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [eax + edx*4], ecx
mov ecx, dword [esp + 0x74]
add dword [esp + 0x60], 1
add ebx, 1
cmp ebx, ecx
jl 0x46b244
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
push esi
push 1
xor esi, esi
push esi
lea edi, [esp + 0x114]
push edi
push ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x11c], eax
mov eax, dword [edx + 0x74]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push esi
push ecx
push eax
call edx
mov byte [esp + 0x118], 4
mov edi, eax
mov eax, dword [esp + 0x60]
push eax
mov ebx, vtable.CBaseRecordVector.0
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], ebx
call dword [0x4d1b6c]
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00495fd1
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov byte [esp + 0x118], 0xe
mov edx, dword [esp + 0xf4]
push edx
push esi
lea ecx, [esp + 0xf4]
mov dword [esp + 0xf4], ebx
call dword [0x4d1b6c]
mov eax, dword [esp + 0xf8]
push eax
call fcn.00495fd1
add esp, 4
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf8], esi
mov dword [esp + 0xfc], esi
mov byte [esp + 0x11c], 1
call fcn.00461260
lea edx, [esp + 0x84]
push edx
mov byte [esp + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x46b395
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x11c], 0xffffffff
call fcn.0046b570
mov eax, edi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24