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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486597
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x4a5294]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1c]
call fcn.00410b3d
test al, al
jne 0x40ae11
mov eax, 0x80004001
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
mov eax, dword [ebp + 0x2c]
xor ebx, ebx
mov byte [eax], bl
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 4
mov dword [esp + 0x60], vtable.CObjectVector_class_CMyComPtr_struct_ISequentialInStream__.0
mov dword [esp + 0x140], ebx
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], 1
call fcn.0041fd43
pop ecx
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x38]
mov byte [esp + 0x140], 2
call fcn.004033e6
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x30], ebx
mov dword [esp + 0x1c], ebx
jle 0x40af6c
push 0x18
call fcn.00402aa5
test eax, eax
pop ecx
je 0x40ae90
and dword [eax + 4], 0
mov dword [eax], vtable.CLockedSequentialInStreamImp.0
mov edi, eax
jmp 0x40ae92
xor edi, edi
test edi, edi
mov dword [esp + 0x30], edi
je 0x40aea0
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x140], 3
lea eax, [esp + 0x38]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x18]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
add dword [ebp + 0x10], ecx
mov dword [esp + 0x10], eax
mov eax, dword [eax + 4]
adc dword [ebp + 0x14], eax
push 0x28
call fcn.00402aa5
test eax, eax
pop ecx
je 0x40aef2
and dword [eax + 4], 0
mov dword [eax], vtable.CLimitedSequentialInStream.0
and dword [eax + 8], 0
mov ebx, eax
jmp 0x40aef4
xor ebx, ebx
test ebx, ebx
mov dword [esp + 0x2c], ebx
je 0x40af02
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
lea esi, [ebx + 8]
mov byte [esp + 0x140], 4
call fcn.004033e6
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
and dword [ebx + 0x18], 0
and dword [ebx + 0x1c], 0
mov dword [ebx + 0x10], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x64]
push eax
mov dword [ebx + 0x14], ecx
mov byte [ebx + 0x20], 0
call fcn.0040baed
mov byte [esp + 0x140], 3
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [esp + 0x140], 2
mov eax, dword [edi]
push edi
call dword [eax + 8]
inc dword [esp + 0x1c]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x30]
jl 0x40ae76
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx + 8]
lea esi, [esp + 0xcc]
mov dword [esp + 0x1c], eax
call fcn.0040ad13
mov eax, esi
mov byte [esp + 0x140], 5
call fcn.0040aafe
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp byte [edi], bl
je 0x40afb5
lea esi, [edi + 4]
lea eax, [esp + 0xcc]
call fcn.0040ac06
neg al
sbb al, al
inc al
je 0x40b1d3
lea ecx, [edi + 0x78]
push dword [ecx + 8]
mov eax, dword [ecx]
push ebx
mov dword [esp + 0x34], ecx
call dword [eax + 4]
lea esi, [edi + 0x74]
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x10], esi
je 0x40afda
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
cmp byte [edi + 0x68], bl
je 0x40b01d
push 0x88
call fcn.00402aa5
cmp eax, ebx
pop ecx
je 0x40aff7
mov esi, eax
call fcn.0040b921
jmp 0x40aff9
xor eax, eax
mov esi, dword [esp + 0x10]
mov dword [edi + 0x6c], eax
mov edi, eax
call fcn.004033e6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
cmp eax, ebx
je 0x40b016
add eax, 4
jmp 0x40b018
xor eax, eax
mov dword [ecx + 0x70], eax
mov edi, ecx
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx]
lea edx, [esp + 0xcc]
push edx
call dword [eax]
mov esi, eax
cmp esi, ebx
je 0x40b082
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 2
call fcn.0040ad36
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], bl
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40b067
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, esi
or dword [esp + 0x140], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.00405df8
mov eax, ebx
jmp 0x40adf9
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
jle 0x40b1a0
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x24]
mov esi, dword [eax + ecx*4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
push ebx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x14c], 7
push dword [esi + 4]
push dword [esi]
call fcn.0040339c
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x40b4df
mov dword [esp + 0x28], ebx
mov byte [esp + 0x140], 8
cmp dword [esi + 0x14], 1
jne 0x40b115
cmp dword [esi + 0x18], 1
jne 0x40b115
cmp dword [esp + 0x14], ebx
je 0x40b549
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push esi
call dword [eax + 4]
cmp byte [edi + 0x68], bl
mov dword [esp + 0x28], esi
je 0x40b142
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6c]
mov edi, esi
call fcn.0040597e
jmp 0x40b13f
cmp dword [esp + 0x18], ebx
je 0x40b59e
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push esi
call dword [eax + 4]
cmp byte [edi + 0x68], bl
mov dword [esp + 0x28], esi
je 0x40b142
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6c]
mov edi, esi
call fcn.0040599f
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x30]
call fcn.0040baed
cmp esi, ebx
mov byte [esp + 0x140], 7
je 0x40b162
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [esp + 0x140], 6
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40b178
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b18e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x1c]
jl 0x40b090
lea esi, [edi + 4]
lea eax, [esp + 0xcc]
call fcn.00405841
push dword [esi + 0x58]
add esi, 0x50
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
lea edi, [esp + 0x11c]
mov eax, esi
call fcn.0040625b
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov edi, eax
mov ecx, dword [edi + 0x70]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], ebx
jle 0x40b64d
mov dword [esp + 0x54], ebx
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + ecx*4]
mov eax, dword [edi + 0x84]
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + eax]
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x144], 9
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x48b378
push eax
call dword [ecx]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40b26a
mov ecx, dword [esi + 0xc]
cmp ecx, 0xffffffff
mov dword [esp + 0x10], ecx
ja 0x40b6c9
push dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x40b6d6
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov byte [esp + 0x140], 5
je 0x40b27c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x30], bl
je 0x40b2d5
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x144], 0xa
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x48b3a8
push eax
call dword [ecx]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40b2c3
push dword [ebp + 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x40b6e7
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov byte [esp + 0x140], 5
je 0x40b2d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x144], 0xb
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x48b418
push eax
call dword [ecx]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b3f1
mov ecx, dword [ebp + 0x28]
cmp ecx, ebx
je 0x40b6f8
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x144], 0xc
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x40b745
mov dword [esp + 0xa8], vtable.CBuffer_unsigned_char_.0
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov eax, dword [ebp + 0x2c]
mov byte [esp + 0x140], 0xd
mov edi, dword [esp + 0x18]
mov byte [eax], 1
lea eax, [esp + 0x74]
call fcn.00402c1e
mov byte [esp + 0x140], 0xe
mov edi, dword [esp + 0x78]
add edi, edi
lea esi, [esp + 0xa8]
call fcn.00404d22
cmp dword [esp + 0x78], ebx
mov esi, dword [esp + 0xb0]
jle 0x40b3aa
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov eax, esi
sub edx, esi
mov dword [esp + 0x20], ecx
movzx ecx, word [edx + eax]
mov byte [eax], cl
mov byte [eax + 1], ch
inc eax
inc eax
dec dword [esp + 0x20]
jne 0x40b399
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0xc]
push dword [esp + 0x74]
mov edi, eax
call fcn.00451709
cmp edi, ebx
pop ecx
push esi
jne 0x40b76e
mov dword [esp + 0xac], vtable.CBuffer_unsigned_char_.0
call fcn.00451709
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x30]
cmp eax, ebx
mov byte [esp + 0x140], 5
je 0x40b403
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push 4
pop ecx
add dword [esp + 0x54], ecx
mov dword [esp + 0x20], eax
mov eax, vtable.CRecordVector_unsigned_long_long_unsigned___int64__const__.0
mov dword [esp + 0x10], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x94], eax
mov ebx, edx
lea esi, [esp + 0x80]
mov byte [esp + 0x140], 0x10
call fcn.0040298d
mov ebx, dword [esp + 0x20]
lea esi, [esp + 0x94]
call fcn.0040298d
test ebx, ebx
jbe 0x40b4ae
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x48]
mov ecx, dword [esp + 0x58]
lea eax, [eax + ecx*8]
push eax
lea esi, [esp + 0x98]
call fcn.00405ed2
inc dword [esp + 0x58]
dec ebx
jne 0x40b48d
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jbe 0x40b5f9
mov esi, dword [ebp + 0x1c]
push dword [esp + 0x24]
mov ecx, esi
call fcn.0040bc7e
test eax, eax
jl 0x40b5ac
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + eax*8 + 4]
mov ecx, dword [esi + 0x48]
jmp 0x40b5da
mov byte [esp + 0x140], 6
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40b4f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b50b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 2
call fcn.0040ad36
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], bl
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40b540
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [esp + 0x10]
jmp 0x40b069
mov byte [esp + 0x140], 6
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40b55f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 2
call fcn.0040ad36
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], bl
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40b594
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004001
jmp 0x40b069
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x14]
jmp 0x40b555
mov eax, dword [esi + 0x30]
xor ecx, ecx
test eax, eax
jle 0x40b5cc
mov esi, dword [esi + 0x34]
mov edx, dword [esi]
cmp edx, dword [esp + 0x24]
je 0x40b6c2
inc ecx
add esi, 4
cmp ecx, eax
jl 0x40b5b8
or eax, 0xffffffff
test eax, eax
jl 0x40b7d0
mov ecx, dword [ebp + 0x18]
lea eax, [ecx + eax*8]
push eax
lea esi, [esp + 0x84]
call fcn.00405ed2
inc ebx
inc dword [esp + 0x24]
cmp ebx, dword [esp + 0x10]
jb 0x40b4ba
push dword [esp + 0xa0]
mov ecx, dword [edi + 0x70]
push dword [esp + 0x90]
mov esi, dword [esp + 0x34]
mov eax, dword [ecx]
push esi
call dword [eax + 8]
lea ecx, [esp + 0x94]
mov byte [esp + 0x140], 0xf
call fcn.0040292d
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 5
call fcn.0040292d
inc esi
xor ebx, ebx
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
jl 0x40b1f5
mov ecx, dword [esp + 0x114]
mov ecx, dword [ecx]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x34]
lea edx, [esp + 0xd0]
call fcn.00405428
cmp byte [edi + 0x68], bl
je 0x40b67a
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x70], ecx
cmp dword [esp + 0x1c], ebx
jne 0x40b82b
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 2
call fcn.0040ad36
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], bl
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40b069
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40b069
mov eax, ecx
jmp 0x40b5cf
mov byte [esp + 0x140], 5
jmp 0x40b559
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x34]
jmp 0x40b501
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x28]
jmp 0x40b501
mov byte [esp + 0x140], 5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 2
call fcn.0040ad36
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], bl
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40b73b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004005
jmp 0x40b069
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b032
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40b032
call fcn.00451709
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b794
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 2
call fcn.0040ad36
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], bl
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40b7c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, edi
jmp 0x40b069
lea ecx, [esp + 0x94]
mov byte [esp + 0x140], 0xf
call fcn.0040292d
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 5
call fcn.0040292d
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 2
call fcn.0040ad36
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], 0
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov eax, dword [esp + 0x38]
test eax, eax
jmp 0x40b733
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], 4
mov dword [esp + 0xb8], vtable.CRecordVector_struct_ISequentialInStream__.0
mov byte [esp + 0x140], 0x11
mov ebx, dword [esp + 0x68]
lea esi, [esp + 0xb8]
call fcn.0040298d
xor ebx, ebx
cmp dword [esp + 0x68], ebx
jle 0x40b892
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + ebx*4]
push dword [eax]
lea esi, [esp + 0xbc]
call fcn.00405ed2
inc ebx
cmp ebx, dword [esp + 0x68]
jl 0x40b876
push dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
push 1
push 0
lea edx, [esp + 0xc0]
push edx
push dword [esp + 0x78]
mov dword [esp + 0xc8], eax
mov eax, dword [edi + 0x74]
mov ecx, dword [eax]
push 0
push dword [esp + 0xdc]
push eax
call dword [ecx + 0xc]
lea ecx, [esp + 0xb8]
mov ebx, eax
mov byte [esp + 0x140], 5
call fcn.0040292d
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 2
call fcn.0040ad36
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x144], 0
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
mov eax, dword [esp + 0x38]
test eax, eax
jmp 0x40b6b1