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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0xc], 0
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
push edi
test edx, edx
je 0x100206c5
mov ebx, edx
jmp 0x100206db
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x100206d0
xor ebx, ebx
jmp 0x100206db
mov eax, dword [ecx + 0xc]
lea ebx, [ecx + 0xc]
mov eax, dword [eax + 0xc]
add ebx, eax
push edx
mov ecx, esi
call fcn.100205e0
mov ecx, dword [ebx]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x38]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx + ebx + 0x94]
mov ecx, dword [ebp + 0xc]
and edx, 0xfa7ff5e7
mov dword [ecx], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi + 0x30]
xor esi, esi
mov dword [ecx], edx
cmp dword [eax + 4], esi
je 0x10020741
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x3c], eax
setbe byte [esp + 0x13]
ja 0x1002072d
mov eax, dword [edi]
jmp 0x1002072f
xor eax, eax
push eax
lea ecx, [ecx + 0x38]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020750
mov eax, dword [edi]
cmp eax, esi
je 0x10020750
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x10020847
cmp dword [ecx + 0x10], 0
je 0x10020847
movzx eax, byte [ecx + 0x18]
push ecx
push eax
push dword [ecx + 0x10]
mov dword [esp + 0x2c], 0x1005bdb0
push dword [ecx + 0xc]
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov word [esp + 0x3c], 0xff
call fcn.10004a20
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x1005bdb0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea eax, [esi*2 + 8]
mov word [esp + 0x3c], 0xff
push eax
call fcn.100049c0
test eax, eax
je 0x10020809
mov ecx, dword [esp + 0x30]
lea eax, [esi + esi]
push eax
push dword [esp + 0x24]
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 + 0x30]
test esi, esi
jne 0x10020822
xor ecx, ecx
push ecx
push esi
push ecx
mov ecx, edi
call fcn.1001bde0
lea eax, [esi + 3]
jmp 0x1002084f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020827
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ecx
mov ecx, edi
call fcn.1001bde0
mov eax, 3
jmp 0x1002084f
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ecx, dword [sym.imp.msvcrt.dll_free]
test al, 2
je 0x1002087b
and eax, 0xfffffffd
mov dword [esp + 0x18], eax
cmp esi, 0x1005bdb0
je 0x1002087b
lea eax, [esi - 4]
push eax
call ecx
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [sym.imp.msvcrt.dll_free]
test al, 1
je 0x10020893
mov eax, dword [esp + 0x20]
cmp eax, 0x1005bdb0
je 0x10020893
add eax, 0xfffffffc
push eax
call ecx
add esp, 4
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x25], 0
je 0x100208be
mov eax, dword [0x1005be08]
mov eax, dword [eax + 0x1174]
shr eax, 0x1d
test al, 1
jne 0x100208be
push 8
push 0x10056a74
push ecx
mov ecx, edi
call fcn.1001bde0
mov esi, dword [esp + 0x1c]
cmp dword [esi + 4], 0
je 0x10020904
push dword [edi + 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esi + 4], eax
setbe byte [esp + 0x13]
ja 0x100208e0
mov eax, dword [edi + 4]
jmp 0x100208e2
xor eax, eax
push eax
mov ecx, esi
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020904
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x10020904
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 4], esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x4c], 0
je 0x1002095d
lea eax, [esi + 0x48]
xor esi, esi
cmp dword [eax + 4], esi
je 0x10020948
push dword [edi + 0x24]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x4c], eax
setbe byte [esp + 0x13]
ja 0x10020934
mov eax, dword [edi + 0x24]
jmp 0x10020936
xor eax, eax
push eax
lea ecx, [ecx + 0x48]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020959
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x10020959
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x24], esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x5c], 0
je 0x100209b2
lea eax, [esi + 0x58]
xor esi, esi
cmp dword [eax + 4], esi
je 0x1002099d
push dword [edi + 0x5c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x5c], eax
setbe byte [esp + 0x13]
ja 0x10020989
mov eax, dword [edi + 0x5c]
jmp 0x1002098b
xor eax, eax
push eax
lea ecx, [ecx + 0x58]
call fcn.10004ff0
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x100209ae
mov eax, dword [edi + 0x5c]
cmp eax, esi
je 0x100209ae
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x5c], esi
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10020a0d
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x84], 0
je 0x10020a0d
xor esi, esi
cmp dword [eax + 0x84], esi
je 0x10020a97
push dword [edi + 0x58]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x84], eax
setbe byte [esp + 0x13]
ja 0x10020a03
mov eax, dword [edi + 0x58]
lea ecx, [ecx + 0x80]
jmp 0x10020a88
xor eax, eax
lea ecx, [ecx + 0x80]
jmp 0x10020a88
cmp dword [esi + 0x6c], 0
je 0x10020a43
lea eax, [esi + 0x68]
xor esi, esi
cmp dword [eax + 4], esi
je 0x10020a97
push dword [edi + 0x58]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x6c], eax
setbe byte [esp + 0x13]
ja 0x10020a3c
mov eax, dword [edi + 0x58]
lea ecx, [ecx + 0x68]
jmp 0x10020a88
xor eax, eax
lea ecx, [ecx + 0x68]
jmp 0x10020a88
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
cmp dword [eax + ecx + 0x90], 0
je 0x10020aa8
add eax, 0x8c
xor esi, esi
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], esi
je 0x10020a97
push dword [edi + 0x58]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x10020a84
mov eax, dword [edi + 0x58]
jmp 0x10020a86
xor eax, eax
mov ecx, edx
push eax
call fcn.10004ff0
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020aa8
mov eax, dword [edi + 0x58]
cmp eax, esi
je 0x10020aa8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x58], esi
cmp dword [ebx + 0x2c], 0
je 0x10020af2
xor esi, esi
cmp dword [ebx + 0x2c], esi
je 0x10020ae1
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x2c], eax
setbe byte [esp + 0x13]
ja 0x10020acd
mov eax, dword [edi + 8]
jmp 0x10020acf
xor eax, eax
push eax
lea ecx, [ebx + 0x28]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020af2
mov eax, dword [edi + 8]
cmp eax, esi
je 0x10020af2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 8], esi
cmp dword [ebx + 0x3c], 0
je 0x10020b3c
xor esi, esi
cmp dword [ebx + 0x3c], esi
je 0x10020b2b
push dword [edi + 0x10]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x3c], eax
setbe byte [esp + 0x13]
ja 0x10020b17
mov eax, dword [edi + 0x10]
jmp 0x10020b19
xor eax, eax
push eax
lea ecx, [ebx + 0x38]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020b3c
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x10020b3c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x10], esi
cmp dword [ebx + 0x4c], 0
je 0x10020b86
xor esi, esi
cmp dword [ebx + 0x4c], esi
je 0x10020b75
push dword [edi + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x4c], eax
setbe byte [esp + 0x13]
ja 0x10020b61
mov eax, dword [edi + 0x14]
jmp 0x10020b63
xor eax, eax
push eax
lea ecx, [ebx + 0x48]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020b86
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x10020b86
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x14], esi
cmp dword [ebx + 0x5c], 0
je 0x10020bd0
xor esi, esi
cmp dword [ebx + 0x5c], esi
je 0x10020bbf
push dword [edi + 0x1c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x5c], eax
setbe byte [esp + 0x13]
ja 0x10020bab
mov eax, dword [edi + 0x1c]
jmp 0x10020bad
xor eax, eax
push eax
lea ecx, [ebx + 0x58]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020bd0
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x10020bd0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x1c], esi
mov eax, dword [ebx]
mov eax, dword [eax + 8]
cmp dword [eax + ebx + 0x74], 0
je 0x10020c2c
add eax, 0x70
xor esi, esi
add eax, ebx
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], esi
je 0x10020c1b
push dword [edi + 0x2c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edx, dword [esp + 0x1c]
cmp dword [edx + 4], eax
setbe byte [esp + 0x13]
ja 0x10020c08
mov eax, dword [edi + 0x2c]
jmp 0x10020c0a
xor eax, eax
push eax
mov ecx, edx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020c2c
mov eax, dword [edi + 0x2c]
cmp eax, esi
je 0x10020c2c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x2c], esi
cmp dword [ebx + 0xcc], 0
je 0x10020c82
xor esi, esi
cmp dword [ebx + 0xcc], esi
je 0x10020c71
push dword [edi + 0x50]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0xcc], eax
setbe byte [esp + 0x13]
ja 0x10020c5a
mov eax, dword [edi + 0x50]
jmp 0x10020c5c
xor eax, eax
push eax
lea ecx, [ebx + 0xc8]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020c82
mov eax, dword [edi + 0x50]
cmp eax, esi
je 0x10020c82
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x50], esi
cmp word [0x1005be30], 0x42
jb 0x10020d08
mov eax, dword [ebx]
mov eax, dword [eax + 8]
cmp dword [eax + ebx + 0x64], 0
je 0x10020d08
add ebx, 0x60
lea ecx, [esp + 0x20]
add eax, ebx
push eax
call fcn.1001e3d0
mov ebx, eax
xor esi, esi
add esp, 4
cmp dword [ebx + 4], esi
je 0x10020cde
push dword [edi + 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x10020ccb
mov eax, dword [edi + 0x18]
jmp 0x10020ccd
xor eax, eax
push eax
mov ecx, ebx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020cef
mov eax, dword [edi + 0x18]
cmp eax, esi
je 0x10020cef
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x18], esi
mov eax, dword [esp + 0x20]
mov ebx, dword [sym.imp.msvcrt.dll_free]
cmp eax, 0x1005bdb0
je 0x10020d0e
push eax
call ebx
add esp, 4
jmp 0x10020d0e
mov ebx, dword [sym.imp.msvcrt.dll_free]
cmp word [0x1005be30], 0x5c
jb 0x10020d89
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 3
push eax
lea ecx, [edi + 0x18]
call fcn.1001bce0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x10020d3e
xor eax, eax
jmp 0x10020d49
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
add eax, 0xc
add eax, ecx
mov ecx, dword [0x1005be08]
push 1
push dword [eax + 0x94]
push eax
push dword [eax + 0x3c]
lea eax, [esp + 0x40]
push eax
call fcn.10015f30
push dword [esp + 0x34]
lea ecx, [edi + 0x18]
push dword [esp + 0x34]
call fcn.1001bce0
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x10020d89
add eax, 0xfffffffc
push eax
call ebx
add esp, 4
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x14]
cmp byte [esi + 0x16], 0
jne 0x10020da3
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
mov esi, dword [eax + esi + 0xa4]
test esi, esi
je 0x10020e61
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
cmp dword [eax + esi + 0x90], 0
je 0x10020e0d
add eax, 0x8c
xor ebx, ebx
add eax, esi
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], ebx
je 0x10020dfc
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 0x10020de9
mov eax, dword [edi + 0x28]
jmp 0x10020deb
xor eax, eax
push eax
mov ecx, edx
call fcn.10004ff0
cmp byte [esp + 0x13], 0
mov ebx, eax
jne 0x10020e0d
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x10020e0d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x28], ebx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
cmp dword [eax + esi + 0x60], 0
je 0x10020e61
lea ebx, [eax + esi]
xor esi, esi
cmp dword [ebx + 0x60], esi
je 0x10020e50
push dword [edi + 0x34]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x60], eax
setbe byte [esp + 0x13]
ja 0x10020e3c
mov eax, dword [edi + 0x34]
jmp 0x10020e3e
xor eax, eax
push eax
lea ecx, [ebx + 0x5c]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020e61
mov eax, dword [edi + 0x34]
cmp eax, esi
je 0x10020e61
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x34], esi
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x78]
test ebx, ebx
je 0x1002129f
cmp word [ebx + 8], 1
jne 0x1002129f
cmp dword [ebx + 0x44], 0
je 0x10020ec5
xor esi, esi
cmp dword [ebx + 0x44], esi
je 0x10020eb4
push dword [edi + 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x44], eax
setbe byte [esp + 0x13]
ja 0x10020ea0
mov eax, dword [edi + 4]
jmp 0x10020ea2
xor eax, eax
push eax
lea ecx, [ebx + 0x40]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020ec5
mov eax, dword [edi + 4]
cmp eax, esi
je 0x10020ec5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 4], esi
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10021290
cmp byte [ebx + 0x21], 0
je 0x10021290
mov ecx, dword [0x1005be08]
push eax
lea ecx, [ecx + 0x1134]
call fcn.1003baa0
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10020eff
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x13
mov word [esp + 0x30], 0
mov dword [esp + 0x2c], 0x13
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, eax
add esp, 4
mov dword [esp + 0x20], edx
test edx, edx
je 0x10020f48
mov byte [edx + 3], 0
mov esi, 3
mov cx, word [0x10056a88]
mov word [edx], cx
mov al, byte [0x10056a8a]
mov byte [edx + 2], al
mov dword [esp + 0x18], 0x13
jmp 0x10020f5e
xor esi, esi
mov dword [esp + 0x20], 0x1005bdb0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], esi
push dword [edx + 0x3c]
mov edx, dword [edx + 0x38]
call fcn.1000a010
mov ecx, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x30]
test ecx, ecx
jle 0x10020fc7
lea eax, [ecx + 1]
add eax, esi
cmp dword [esp + 0x18], eax
jae 0x10020fa5
push eax
lea ecx, [esp + 0x24]
call fcn.100035c0
mov esi, dword [esp + 0x24]
test eax, eax
je 0x10020fc3
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
add eax, esi
add esi, ecx
push ecx
push dword [esp + 0x34]
mov dword [esp + 0x2c], esi
push eax
mov byte [eax + ecx], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x10020fd8
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp dword [ebx + 0x54], 0
je 0x1002121d
mov al, byte [esp + 0x2c]
mov ecx, 0x1005bdb0
mov byte [esp + 0x3c], al
lea eax, [esi + 5]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3d], 0
test eax, eax
je 0x10021025
push eax
lea ecx, [esp + 0x34]
call fcn.100035c0
test eax, eax
je 0x1002123e
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x2c]
mov byte [esp + 0x13], al
lea eax, [ecx + 4]
push esi
push dword [esp + 0x24]
mov byte [eax], 0
mov dword [ecx], 0x3d6c732c
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x24], ecx
mov byte [esi + eax], 0
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
mov al, byte [esp + 0x13]
test edx, edx
jle 0x100210b5
movsx ecx, al
movsx eax, byte [esp + 0x2c]
shl ecx, 8
or ecx, eax
lea eax, [edx + edx*2]
cmp ecx, 0x102
je 0x10021078
mov eax, edx
inc eax
add eax, esi
cmp dword [esp + 0x28], eax
jae 0x10021097
push eax
lea ecx, [esp + 0x24]
call fcn.100035c0
mov esi, dword [esp + 0x24]
test eax, eax
je 0x100210b5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add eax, esi
add esi, edx
push edx
push dword [esp + 0x34]
mov dword [esp + 0x2c], esi
push eax
mov byte [edx + eax], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x100210ca
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push dword [ebx + 0x54]
mov edx, dword [ebx + 0x50]
lea ecx, [esp + 0x34]
call fcn.1000a010
mov edx, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x30]
test edx, edx
jle 0x10021145
movsx ecx, byte [esp + 0x3c]
movsx eax, byte [esp + 0x2c]
shl ecx, 8
or ecx, eax
lea eax, [edx + edx*2]
cmp ecx, 0x102
je 0x10021104
mov eax, edx
inc eax
add eax, esi
cmp dword [esp + 0x28], eax
jae 0x10021123
push eax
lea ecx, [esp + 0x24]
call fcn.100035c0
mov esi, dword [esp + 0x24]
test eax, eax
je 0x10021141
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
add eax, esi
add esi, edx
push edx
push dword [esp + 0x34]
mov dword [esp + 0x2c], esi
push eax
mov byte [edx + eax], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x10021156
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea eax, [esi + 6]
cmp dword [esp + 0x28], eax
jae 0x10021171
push eax
lea ecx, [esp + 0x24]
call fcn.100035c0
mov esi, dword [esp + 0x24]
test eax, eax
je 0x10021191
mov ecx, dword [esp + 0x20]
add ecx, esi
add esi, 5
mov dword [esp + 0x24], esi
mov byte [ecx + 5], 0
mov eax, dword [str._asl]
mov dword [ecx], eax
mov al, byte [0x10056b00]
mov byte [ecx + 4], al
push dword [ebx + 0x64]
mov edx, dword [ebx + 0x60]
lea ecx, [esp + 0x34]
call fcn.1000a010
mov edx, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x30]
test edx, edx
jle 0x1002120c
movsx ecx, byte [esp + 0x3c]
movsx eax, byte [esp + 0x2c]
shl ecx, 8
or ecx, eax
lea eax, [edx + edx*2]
cmp ecx, 0x102
je 0x100211cb
mov eax, edx
inc eax
add eax, esi
cmp dword [esp + 0x28], eax
jae 0x100211ea
push eax
lea ecx, [esp + 0x24]
call fcn.100035c0
mov esi, dword [esp + 0x24]
test eax, eax
je 0x10021208
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
add eax, esi
add esi, edx
push edx
push dword [esp + 0x34]
mov dword [esp + 0x2c], esi
push eax
mov byte [edx + eax], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x30]
cmp eax, 0x1005bdb0
je 0x1002121d
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
xor eax, eax
mov dword [esp + 0x18], eax
test esi, esi
je 0x10021266
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp esi, eax
setbe byte [esp + 0x13]
ja 0x1002124f
mov eax, dword [edi + 0x30]
jmp 0x10021251
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x3c]
mov dword [esp + 0x18], edx
jmp 0x1002105a
xor eax, eax
push eax
lea ecx, [esp + 0x24]
call fcn.10004760
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
jne 0x1002127b
mov ecx, dword [edi + 0x30]
cmp ecx, eax
je 0x1002127b
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 0x10021290
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp byte [ebx + 0x22], 0
je 0x1002129f
mov eax, dword [ebp + 0x18]
or dword [eax], 0x100
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0x78]
test esi, esi
je 0x10021379
cmp word [esi + 8], 0xffff
jne 0x10021379
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x1002130d
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [ebx + 4], eax
je 0x100212f8
push dword [edi + 0xc]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x100212e3
mov eax, dword [edi + 0xc]
jmp 0x100212e5
xor eax, eax
push eax
mov ecx, ebx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
jne 0x1002130d
mov ecx, dword [edi + 0xc]
cmp ecx, eax
je 0x1002130d
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
mov dword [edi + 0xc], eax
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x10021333
xor esi, esi
cmp dword [ebx + 4], esi
je 0x10021368
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x10021355
mov eax, dword [edi + 0x30]
jmp 0x10021357
lea ebx, [esi + 0x2c]
xor esi, esi
cmp dword [ebx + 4], esi
je 0x10021368
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x10021355
mov eax, dword [edi + 0x30]
jmp 0x10021357
xor eax, eax
push eax
mov ecx, ebx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10021379
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x10021379
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x30], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x100213d1
cmp word [eax + 8], 0xfffe
jne 0x100213d1
lea ebx, [eax + 0x1c]
xor esi, esi
cmp dword [ebx + 4], esi
je 0x100213c0
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x100213ad
mov eax, dword [edi + 0x30]
jmp 0x100213af
xor eax, eax
push eax
mov ecx, ebx
call fcn.10004760
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x100213d1
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x100213d1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x30], esi
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x78]
test esi, esi
je 0x10021442
movzx eax, word [esi + 8]
cmp ax, 0xfffc
je 0x100213f8
cmp ax, 2
je 0x100213f8
cmp ax, 4
je 0x100213f8
cmp ax, 5
jne 0x10021442
mov esi, dword [esi + 0x28]
test esi, esi
je 0x10021442
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x10021431
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esi + 4], eax
setbe byte [esp + 0x13]
ja 0x1002141e
mov eax, dword [edi + 0x30]
jmp 0x10021420
xor eax, eax
push eax
mov ecx, esi
call fcn.10004760
cmp byte [esp + 0x13], 0
mov ebx, eax
jne 0x10021442
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x10021442
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 0x18