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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, ecx
mov dword [esp + 0xc], 0
push esi
xor esi, esi
push edi
mov eax, dword [ebx + 4]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax + ebx + 0x98]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x40]
mov dword [eax], ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
add eax, 0x54
add eax, ebx
mov dword [esp + 0x18], eax
cmp dword [eax + 4], esi
je 0x1001d6f6
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x18]
mov ecx, eax
cmp dword [edx + 4], ecx
setbe byte [esp + 0x13]
ja 0x1001d6e3
mov eax, dword [edi]
jmp 0x1001d6e5
xor eax, eax
push eax
mov ecx, edx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001d705
mov eax, dword [edi]
cmp eax, esi
je 0x1001d705
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + ebx + 0xa8]
test ecx, ecx
je 0x1001d802
cmp dword [ecx + 0x10], 0
je 0x1001d802
movzx eax, byte [ecx + 0x18]
push ecx
push eax
push dword [ecx + 0x10]
mov dword [esp + 0x3c], 0x1005bdb0
push dword [ecx + 0xc]
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov word [esp + 0x4c], 0xff
call fcn.10004a20
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x1005bdb0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea eax, [esi*2 + 8]
mov word [esp + 0x2c], 0xff
push eax
call fcn.100049c0
test eax, eax
je 0x1001d7c4
mov ecx, dword [esp + 0x20]
lea eax, [esi + esi]
push eax
push dword [esp + 0x34]
lea esi, [eax + ecx]
xor edx, edx
push ecx
mov word [esi], dx
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + 6], ax
mov eax, dword [0x10056a6c]
mov dword [esi], eax
mov ax, word [0x10056a70]
mov word [esi + 4], ax
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x1001d7dd
xor ecx, ecx
push ecx
push esi
push ecx
mov ecx, edi
call fcn.1001bde0
lea eax, [esi + 3]
jmp 0x1001d80a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d7e2
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ecx
mov ecx, edi
call fcn.1001bde0
mov eax, 3
jmp 0x1001d80a
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov ecx, dword [sym.imp.msvcrt.dll_free]
test al, 2
je 0x1001d836
and eax, 0xfffffffd
mov dword [esp + 0x14], eax
cmp esi, 0x1005bdb0
je 0x1001d836
lea eax, [esi - 4]
push eax
call ecx
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [sym.imp.msvcrt.dll_free]
test al, 1
je 0x1001d84e
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x1001d84e
add eax, 0xfffffffc
push eax
call ecx
add esp, 4
cmp byte [ebx + 0x44], 0
je 0x1001d875
mov eax, dword [0x1005be08]
mov eax, dword [eax + 0x1174]
shr eax, 0x1d
test al, 1
jne 0x1001d875
push 8
push 0x10056a74
push ecx
mov ecx, edi
call fcn.1001bde0
cmp dword [ebx + 0x1c], 0
je 0x1001d8cd
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x1c], eax
je 0x1001d8b4
push dword [edi + 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x1c], eax
setbe byte [esp + 0x13]
ja 0x1001d89e
mov eax, dword [edi + 0x24]
jmp 0x1001d8a0
xor eax, eax
push eax
lea ecx, [ebx + 0x18]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
jne 0x1001d8cd
mov ecx, dword [edi + 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ecx, eax
je 0x1001d8d3
push ecx
call esi
mov eax, dword [esp + 0x14]
mov dword [edi + 0x24], eax
jmp 0x1001d8d3
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
add eax, ebx
mov dword [esp + 0x18], eax
cmp dword [eax + 0x78], 0
je 0x1001d936
lea ecx, [eax + 0x74]
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ecx + 4], eax
je 0x1001d925
push dword [edi + 0x2c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x78], eax
setbe byte [esp + 0x13]
ja 0x1001d90f
mov eax, dword [edi + 0x2c]
jmp 0x1001d911
xor eax, eax
push eax
lea ecx, [ecx + 0x74]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
jne 0x1001d936
mov ecx, dword [edi + 0x2c]
cmp ecx, eax
je 0x1001d936
push ecx
call esi
mov eax, dword [esp + 0x14]
mov dword [edi + 0x2c], eax
cmp dword [ebx + 0x2c], 0
je 0x1001d986
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x2c], eax
je 0x1001d975
push dword [edi + 0x5c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x2c], eax
setbe byte [esp + 0x13]
ja 0x1001d95f
mov eax, dword [edi + 0x5c]
jmp 0x1001d961
xor eax, eax
push eax
lea ecx, [ebx + 0x28]
call fcn.10004ff0
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
jne 0x1001d986
mov ecx, dword [edi + 0x5c]
cmp ecx, eax
je 0x1001d986
push ecx
call esi
mov eax, dword [esp + 0x14]
mov dword [edi + 0x5c], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
add eax, ebx
mov dword [esp + 0x18], eax
cmp dword [eax + 0x88], 0
je 0x1001da02
lea ecx, [eax + 0x84]
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ecx + 4], eax
je 0x1001d9e8
push dword [edi + 0x58]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x88], eax
setbe byte [esp + 0x13]
ja 0x1001d9cb
mov eax, dword [edi + 0x58]
jmp 0x1001d9cd
xor eax, eax
push eax
lea ecx, [ecx + 0x84]
call fcn.10004ff0
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
jne 0x1001daf9
mov ecx, dword [edi + 0x58]
cmp ecx, eax
je 0x1001daf9
push ecx
call esi
mov eax, dword [esp + 0x14]
mov dword [edi + 0x58], eax
jmp 0x1001daf9
cmp dword [ebx + 0xc], 0
je 0x1001daf9
mov al, byte [ebx + 0x14]
lea edx, [ebx + 8]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x20], al
call fcn.1000a870
mov edx, dword [ebx + 8]
add esp, 4
mov ecx, dword [eax + 4]
add edx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
test ecx, ecx
jle 0x1001da63
lea eax, [ecx + 0x10]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1001da63
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x1c]
push esi
mov byte [esi + eax], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1001da70
mov esi, 0x1005bdb0
mov dword [esp + 0x14], 0
mov eax, dword [ebx + 4]
push ecx
push dword [esp + 0x20]
mov eax, dword [eax + 8]
push dword [esp + 0x1c]
add eax, 0x84
add eax, ebx
push esi
mov ecx, eax
mov dword [esp + 0x28], eax
call fcn.10004a20
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ecx + 4], eax
je 0x1001dad2
push dword [edi + 0x58]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x18]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x1001dabd
mov eax, dword [edi + 0x58]
jmp 0x1001dabf
xor eax, eax
push eax
mov ecx, edx
call fcn.10004ff0
cmp byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
jne 0x1001dae7
mov ecx, dword [edi + 0x58]
cmp ecx, eax
je 0x1001dae7
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
mov dword [edi + 0x58], eax
cmp esi, 0x1005bdb0
je 0x1001daf9
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp word [0x1005be30], 0x42
jb 0x1001db86
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
cmp dword [eax + ebx + 0x68], 0
je 0x1001db86
add eax, 0x64
lea ecx, [esp + 0x30]
add eax, ebx
push eax
call fcn.1001e3d0
xor esi, esi
mov dword [esp + 0x20], eax
add esp, 4
cmp dword [eax + 4], esi
je 0x1001db60
push dword [edi + 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x1001db4d
mov eax, dword [edi + 0x18]
jmp 0x1001db4f
xor eax, eax
push eax
mov ecx, edx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001db71
mov eax, dword [edi + 0x18]
cmp eax, esi
je 0x1001db71
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x18], esi
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x1001db86
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + ebx + 0x9c]
test ecx, ecx
je 0x1001dc7f
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
cmp dword [eax + ecx + 0x60], 0
je 0x1001dc03
cmp byte [ecx + 0x1a], 0
jne 0x1001dc03
lea esi, [eax + ecx]
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x60], eax
je 0x1001dbea
push dword [edi + 0x34]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esi + 0x60], eax
setbe byte [esp + 0x13]
ja 0x1001dbd4
mov eax, dword [edi + 0x34]
jmp 0x1001dbd6
xor eax, eax
push eax
lea ecx, [esi + 0x5c]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
jne 0x1001dc03
mov ecx, dword [edi + 0x34]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ecx, eax
je 0x1001dc09
push ecx
call esi
mov eax, dword [esp + 0x18]
mov dword [edi + 0x34], eax
jmp 0x1001dc09
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax + ebx + 0x9c]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
cmp dword [eax + ecx + 0x90], 0
je 0x1001dc7f
add ecx, 0x8c
add ecx, eax
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
cmp dword [ecx + 4], eax
je 0x1001dc6e
push dword [edi + 0x28]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x1001dc59
mov eax, dword [edi + 0x28]
jmp 0x1001dc5b
xor eax, eax
push eax
mov ecx, edx
call fcn.10004ff0
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
jne 0x1001dc7f
mov ecx, dword [edi + 0x28]
cmp ecx, eax
je 0x1001dc7f
push ecx
call esi
mov eax, dword [esp + 0x18]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov esi, dword [eax + ebx + 0xa8]
test esi, esi
je 0x1001de44
cmp word [esi + 8], 1
jne 0x1001de44
cmp dword [esi + 0x44], 0
je 0x1001dcf3
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x44], eax
je 0x1001dcde
push dword [edi + 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esi + 0x44], eax
setbe byte [esp + 0x13]
ja 0x1001dcc8
mov eax, dword [edi + 4]
jmp 0x1001dcca
xor eax, eax
push eax
lea ecx, [esi + 0x40]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
jne 0x1001dcf3
mov ecx, dword [edi + 4]
cmp ecx, eax
je 0x1001dcf3
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1001de35
cmp byte [esi + 0x21], 0
je 0x1001de35
mov ecx, dword [0x1005be08]
push eax
lea ecx, [ecx + 0x1134]
call fcn.1003baa0
test eax, eax
jne 0x1001dd29
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x34]
call fcn.1000a010
mov al, byte [esp + 0x40]
add esp, 4
mov byte [esp + 0x2c], al
mov edx, 0x1005bdb0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x2d], 0
add eax, 4
je 0x1001dd7c
push eax
lea ecx, [esp + 0x24]
call fcn.100035c0
test eax, eax
je 0x1001ddba
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x3c]
lea ecx, [edx + 3]
mov byte [ecx], 0
mov byte [esp + 0x2c], al
mov ax, word [0x10056a88]
mov word [edx], ax
movzx eax, byte [0x10056a8a]
mov byte [edx + 2], al
mov edx, dword [esp + 0x34]
push edx
push dword [esp + 0x34]
lea eax, [edx + 3]
mov byte [ecx + edx], 0
push ecx
mov dword [esp + 0x30], eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], eax
je 0x1001ddf6
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esp + 0x24], eax
setbe byte [esp + 0x13]
ja 0x1001dddf
mov eax, dword [edi + 0x30]
jmp 0x1001dde1
xor eax, eax
push eax
lea ecx, [esp + 0x24]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
jne 0x1001de0b
mov ecx, dword [edi + 0x30]
cmp ecx, eax
je 0x1001de0b
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x1005bdb0
je 0x1001de20
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x1001de35
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp byte [esi + 0x22], 0
je 0x1001de44
mov eax, dword [ebp + 0x18]
or dword [eax], 0x100
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov esi, dword [eax + ebx + 0xa8]
test esi, esi
je 0x1001df3e
cmp word [esi + 8], 0xffff
jne 0x1001df3e
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1001dec2
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [eax + 4], ecx
je 0x1001dead
push dword [edi + 0xc]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x1001de96
mov eax, dword [edi + 0xc]
jmp 0x1001de98
xor eax, eax
push eax
mov ecx, edx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov ecx, eax
mov dword [esp + 0x18], eax
jne 0x1001dec2
mov eax, dword [edi + 0xc]
cmp eax, ecx
je 0x1001dec2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1001def0
xor esi, esi
cmp dword [eax + 4], esi
je 0x1001df2d
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x1001df1a
mov eax, dword [edi + 0x30]
jmp 0x1001df1c
lea eax, [esi + 0x2c]
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], esi
je 0x1001df2d
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x1001df1a
mov eax, dword [edi + 0x30]
jmp 0x1001df1c
xor eax, eax
push eax
mov ecx, edx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001df3e
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x1001df3e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x30], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + ebx + 0xa8]
test eax, eax
je 0x1001dfa4
cmp word [eax + 8], 0xfffe
jne 0x1001dfa4
add eax, 0x1c
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], esi
je 0x1001df93
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x1001df80
mov eax, dword [edi + 0x30]
jmp 0x1001df82
xor eax, eax
push eax
mov ecx, edx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001dfa4
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x1001dfa4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x30], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov esi, dword [eax + ebx + 0xa8]
test esi, esi
je 0x1001e01b
movzx eax, word [esi + 8]
cmp ax, 0xfffc
je 0x1001dfd1
cmp ax, 2
je 0x1001dfd1
cmp ax, 4
je 0x1001dfd1
cmp ax, 5
jne 0x1001e01b
mov esi, dword [esi + 0x28]
test esi, esi
je 0x1001e01b
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x1001e00a
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esi + 4], eax
setbe byte [esp + 0x13]
ja 0x1001dff7
mov eax, dword [edi + 0x30]
jmp 0x1001dff9
xor eax, eax
push eax
mov ecx, esi
call fcn.10004760
cmp byte [esp + 0x13], 0
mov ebx, eax
jne 0x1001e01b
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x1001e01b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x30], ebx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14