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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006bb22
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x1008f210]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1c]
call fcn.1003b9e5
test al, al
jne 0x1004081f
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
lea eax, [esp + 0x3c]
mov dword [esp + 0x140], ebx
push eax
mov dword [esp + 0x3c], ebx
call fcn.10046978
pop ecx
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x38]
mov byte [esp + 0x140], 1
call fcn.100331db
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x30]
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jle 0x10040974
push 0x18
call fcn.1003202e
pop ecx
test eax, eax
je 0x10040898
and dword [eax + 4], 0
mov dword [eax], vtable.CLockedSequentialInStreamImp.0
mov edi, eax
jmp 0x1004089a
xor edi, edi
mov dword [esp + 0x30], edi
test edi, edi
je 0x100408a8
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x140], 2
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.1003202e
pop ecx
test eax, eax
je 0x100408fa
and dword [eax + 4], 0
mov dword [eax], vtable.CLimitedSequentialInStream.0
and dword [eax + 8], 0
mov ebx, eax
jmp 0x100408fc
xor ebx, ebx
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x1004090a
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
lea esi, [ebx + 8]
mov byte [esp + 0x140], 3
call fcn.100331db
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.10047257
mov byte [esp + 0x140], 2
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov byte [esp + 0x140], 1
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 0x1004087e
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx + 8]
lea esi, [esp + 0xcc]
mov dword [esp + 0x1c], eax
call fcn.1004074e
mov eax, esi
mov byte [esp + 0x140], 4
call fcn.10040539
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp byte [edi], bl
je 0x100409bd
lea esi, [edi + 4]
lea eax, [esp + 0xcc]
call fcn.10040641
neg al
sbb al, al
inc al
je 0x10040bdb
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]
mov dword [esp + 0x10], esi
cmp eax, ebx
je 0x100409e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
cmp byte [edi + 0x68], bl
je 0x10040a25
push 0x88
call fcn.1003202e
pop ecx
cmp eax, ebx
je 0x100409ff
mov esi, eax
call fcn.10041330
jmp 0x10040a01
xor eax, eax
mov esi, dword [esp + 0x10]
mov dword [edi + 0x6c], eax
mov edi, eax
call fcn.100331db
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x6c]
cmp eax, ebx
je 0x10040a1e
add eax, 4
jmp 0x10040a20
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 0x10040a8a
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 1
call fcn.1003cf22
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 0x10040a6f
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.1004142e
mov eax, ebx
jmp 0x10040807
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
jle 0x10040ba8
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], 6
push dword [esi + 4]
push dword [esi]
call fcn.10032907
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x10040eea
mov dword [esp + 0x28], ebx
mov byte [esp + 0x140], 7
cmp dword [esi + 0x14], 1
jne 0x10040b1d
cmp dword [esi + 0x18], 1
jne 0x10040b1d
cmp dword [esp + 0x14], ebx
je 0x10040f54
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [esp + 0x28], esi
cmp byte [edi + 0x68], bl
je 0x10040b4a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6c]
mov edi, esi
call fcn.10046ddb
jmp 0x10040b47
cmp dword [esp + 0x18], ebx
je 0x10040fa9
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [esp + 0x28], esi
cmp byte [edi + 0x68], bl
je 0x10040b4a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6c]
mov edi, esi
call fcn.10046dfc
mov edi, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x30]
call fcn.10047257
mov byte [esp + 0x140], 6
cmp esi, ebx
je 0x10040b6a
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10040b80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10040b96
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 0x10040a98
lea esi, [edi + 4]
lea eax, [esp + 0xcc]
call fcn.10041386
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.1003e1a2
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 0x10041058
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], 8
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x1007c7b8
push eax
call dword [ecx]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10040c72
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x10], ecx
cmp ecx, 0xffffffff
ja 0x100410d4
push dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x100410e1
mov eax, dword [esp + 0x34]
mov byte [esp + 0x140], 4
cmp eax, ebx
je 0x10040c84
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0x30], bl
je 0x10040cdd
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x144], 9
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x1007c7e8
push eax
call dword [ecx]
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x10040ccb
push dword [ebp + 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x100410f2
mov eax, dword [esp + 0x28]
mov byte [esp + 0x140], 4
cmp eax, ebx
je 0x10040cdd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x144], 0xa
mov eax, dword [eax]
mov ecx, dword [eax]
push 0x1007c858
push eax
call dword [ecx]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10040dfc
mov ecx, dword [ebp + 0x28]
cmp ecx, ebx
je 0x10041103
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x144], 0xb
mov eax, dword [ecx]
push ecx
call dword [eax + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x10041150
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], 0xc
mov edi, dword [esp + 0x14]
mov byte [eax], 1
lea eax, [esp + 0x74]
call fcn.10039c13
mov byte [esp + 0x140], 0xd
mov edi, dword [esp + 0x78]
add edi, edi
lea esi, [esp + 0xa8]
call fcn.1003dc88
cmp dword [esp + 0x78], ebx
mov esi, dword [esp + 0xb0]
jle 0x10040db5
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ecx, esi
sub edx, esi
mov dword [esp + 0x20], eax
movzx eax, word [edx + ecx]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
inc ecx
inc ecx
dec dword [esp + 0x20]
jne 0x10040da1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0xc]
push dword [esp + 0x74]
mov edi, eax
call fcn.1004d030
pop ecx
push esi
cmp edi, ebx
jne 0x10041179
mov dword [esp + 0xac], vtable.CBuffer_unsigned_char_.0
call fcn.1004d030
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x30]
mov byte [esp + 0x140], 4
cmp eax, ebx
je 0x10040e0e
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], 0xf
call fcn.1003a3b1
mov ebx, dword [esp + 0x20]
lea esi, [esp + 0x94]
call fcn.1003a3b1
test ebx, ebx
jbe 0x10040eb9
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.100414a0
inc dword [esp + 0x58]
dec ebx
jne 0x10040e98
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jbe 0x10041004
mov esi, dword [ebp + 0x1c]
push dword [esp + 0x24]
mov ecx, esi
call fcn.10047905
test eax, eax
jl 0x10040fb7
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + eax*8 + 4]
mov ecx, dword [esi + 0x48]
jmp 0x10040fe5
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10040f00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10040f16
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 1
call fcn.1003cf22
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 0x10040f4b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [esp + 0x10]
jmp 0x10040a71
mov byte [esp + 0x140], 5
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10040f6a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 1
call fcn.1003cf22
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 0x10040f9f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004001
jmp 0x10040a71
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0x14]
jmp 0x10040f60
mov eax, dword [esi + 0x30]
xor ecx, ecx
test eax, eax
jle 0x10040fd7
mov esi, dword [esi + 0x34]
mov edx, dword [esi]
cmp edx, dword [esp + 0x24]
je 0x100410cd
inc ecx
add esi, 4
cmp ecx, eax
jl 0x10040fc3
or eax, 0xffffffff
test eax, eax
jl 0x100411db
mov ecx, dword [ebp + 0x18]
lea eax, [ecx + eax*8]
push eax
lea esi, [esp + 0x84]
call fcn.100414a0
inc ebx
inc dword [esp + 0x24]
cmp ebx, dword [esp + 0x10]
jb 0x10040ec5
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], 0xe
call fcn.1003a351
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 4
call fcn.1003a351
inc esi
xor ebx, ebx
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
jl 0x10040bfd
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.1004044d
cmp byte [edi + 0x68], bl
je 0x10041085
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x70], ecx
cmp dword [esp + 0x1c], ebx
jne 0x10041236
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 1
call fcn.1003cf22
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 0x10040a71
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10040a71
mov eax, ecx
jmp 0x10040fda
mov byte [esp + 0x140], 4
jmp 0x10040f64
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0x34]
jmp 0x10040f0c
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0x28]
jmp 0x10040f0c
mov byte [esp + 0x140], 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 1
call fcn.1003cf22
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 0x10041146
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, 0x80004005
jmp 0x10040a71
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10040a3a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10040a3a
call fcn.1004d030
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x140], 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1004119f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 1
call fcn.1003cf22
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 0x100411d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, edi
jmp 0x10040a71
lea ecx, [esp + 0x94]
mov byte [esp + 0x140], 0xe
call fcn.1003a351
lea ecx, [esp + 0x80]
mov byte [esp + 0x140], 4
call fcn.1003a351
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 1
call fcn.1003cf22
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 0x1004113e
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], 0x10
mov ebx, dword [esp + 0x68]
lea esi, [esp + 0xb8]
call fcn.1003a3b1
xor ebx, ebx
cmp dword [esp + 0x68], ebx
jle 0x1004129d
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + ebx*4]
push dword [eax]
lea esi, [esp + 0xbc]
call fcn.100414a0
inc ebx
cmp ebx, dword [esp + 0x68]
jl 0x10041281
push dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov edi, dword [edi + 0x74]
push 1
push 0
lea ecx, [esp + 0xc0]
push ecx
push dword [esp + 0x78]
mov dword [esp + 0xc8], eax
mov eax, dword [edi]
push 0
push dword [esp + 0xdc]
push edi
call dword [eax + 0xc]
lea ecx, [esp + 0xb8]
mov ebx, eax
mov byte [esp + 0x140], 4
call fcn.1003a351
lea eax, [esp + 0xcc]
push eax
mov byte [esp + 0x144], 1
call fcn.1003cf22
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 0x100410bc