Function at 0x1001f610
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 0x1001f635
mov ebx, edx
jmp 0x1001f64b
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x1001f640
xor ebx, ebx
jmp 0x1001f64b
mov eax, dword [ecx + 0xc]
lea ebx, [ecx + 0xc]
mov eax, dword [eax + 0xc]
add ebx, eax
push edx
mov ecx, esi
call fcn.1001f550
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 + 0x84]
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 0x1001f6b1
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 0x1001f69d
mov eax, dword [edi]
jmp 0x1001f69f
xor eax, eax
push eax
lea ecx, [ecx + 0x38]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001f6c0
mov eax, dword [edi]
cmp eax, esi
je 0x1001f6c0
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 0x1001f7b7
cmp dword [ecx + 0x10], 0
je 0x1001f7b7
movzx eax, byte [ecx + 0x18]
push ecx
push eax
push dword [ecx + 0x10]
mov dword [esp + 0x2c], 0x10059da0
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.100049d0
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x10059da0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea eax, [esi*2 + 8]
mov word [esp + 0x3c], 0xff
push eax
call fcn.10004970
test eax, eax
je 0x1001f779
mov ecx, dword [esp + 0x30]
lea eax, [esi + esi]
push eax
push dword [esp + 0x24]
lea esi, [ecx + eax]
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 [0x10054854]
mov dword [esi], eax
mov ax, word [0x10054858]
mov word [esi + 4], ax
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x1001f792
xor ecx, ecx
push ecx
push esi
push ecx
mov ecx, edi
call fcn.1001aef0
lea eax, [esi + 3]
jmp 0x1001f7bf
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001f797
sub ecx, edx
sar ecx, 1
push ecx
push esi
push ecx
mov ecx, edi
call fcn.1001aef0
mov eax, 3
jmp 0x1001f7bf
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ecx, dword [sym.imp.msvcrt.dll_free]
test al, 2
je 0x1001f7eb
and eax, 0xfffffffd
mov dword [esp + 0x18], eax
cmp esi, 0x10059da0
je 0x1001f7eb
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 0x1001f803
mov eax, dword [esp + 0x20]
cmp eax, 0x10059da0
je 0x1001f803
add eax, 0xfffffffc
push eax
call ecx
add esp, 4
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x25], 0
je 0x1001f82e
mov eax, dword [0x10059df0]
mov eax, dword [eax + 0x116c]
shr eax, 0x1d
test al, 1
jne 0x1001f82e
push 8
push 0x1005485c
push ecx
mov ecx, edi
call fcn.1001aef0
mov esi, dword [esp + 0x1c]
cmp dword [esi + 4], 0
je 0x1001f874
push dword [edi + 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esi + 4], eax
setbe byte [esp + 0x13]
ja 0x1001f850
mov eax, dword [edi + 4]
jmp 0x1001f852
xor eax, eax
push eax
mov ecx, esi
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001f874
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x1001f874
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 0x1001f8cd
lea eax, [esi + 0x48]
xor esi, esi
cmp dword [eax + 4], esi
je 0x1001f8b8
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 0x1001f8a4
mov eax, dword [edi + 0x24]
jmp 0x1001f8a6
xor eax, eax
push eax
lea ecx, [ecx + 0x48]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001f8c9
mov eax, dword [edi + 0x24]
cmp eax, esi
je 0x1001f8c9
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 0x1001f922
lea eax, [esi + 0x58]
xor esi, esi
cmp dword [eax + 4], esi
je 0x1001f90d
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 0x1001f8f9
mov eax, dword [edi + 0x5c]
jmp 0x1001f8fb
xor eax, eax
push eax
lea ecx, [ecx + 0x58]
call fcn.10004fa0
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001f91e
mov eax, dword [edi + 0x5c]
cmp eax, esi
je 0x1001f91e
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 0x1001f96e
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x74], 0
je 0x1001f96e
xor esi, esi
cmp dword [eax + 0x74], esi
je 0x1001f9f6
push dword [edi + 0x58]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x74], eax
setbe byte [esp + 0x13]
ja 0x1001f967
mov eax, dword [edi + 0x58]
lea ecx, [ecx + 0x70]
jmp 0x1001f9e7
xor eax, eax
lea ecx, [ecx + 0x70]
jmp 0x1001f9e7
cmp dword [esi + 0x6c], 0
je 0x1001f9a4
lea eax, [esi + 0x68]
xor esi, esi
cmp dword [eax + 4], esi
je 0x1001f9f6
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 0x1001f99d
mov eax, dword [edi + 0x58]
lea ecx, [ecx + 0x68]
jmp 0x1001f9e7
xor eax, eax
lea ecx, [ecx + 0x68]
jmp 0x1001f9e7
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
cmp dword [eax + ecx + 0x80], 0
je 0x1001fa07
add eax, 0x7c
xor esi, esi
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], esi
je 0x1001f9f6
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 0x1001f9e3
mov eax, dword [edi + 0x58]
jmp 0x1001f9e5
xor eax, eax
mov ecx, edx
push eax
call fcn.10004fa0
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fa07
mov eax, dword [edi + 0x58]
cmp eax, esi
je 0x1001fa07
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x58], esi
cmp dword [ebx + 0x2c], 0
je 0x1001fa51
xor esi, esi
cmp dword [ebx + 0x2c], esi
je 0x1001fa40
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x2c], eax
setbe byte [esp + 0x13]
ja 0x1001fa2c
mov eax, dword [edi + 8]
jmp 0x1001fa2e
xor eax, eax
push eax
lea ecx, [ebx + 0x28]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fa51
mov eax, dword [edi + 8]
cmp eax, esi
je 0x1001fa51
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 8], esi
cmp dword [ebx + 0x3c], 0
je 0x1001fa9b
xor esi, esi
cmp dword [ebx + 0x3c], esi
je 0x1001fa8a
push dword [edi + 0x10]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x3c], eax
setbe byte [esp + 0x13]
ja 0x1001fa76
mov eax, dword [edi + 0x10]
jmp 0x1001fa78
xor eax, eax
push eax
lea ecx, [ebx + 0x38]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fa9b
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x1001fa9b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x10], esi
cmp dword [ebx + 0x4c], 0
je 0x1001fae5
xor esi, esi
cmp dword [ebx + 0x4c], esi
je 0x1001fad4
push dword [edi + 0x14]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x4c], eax
setbe byte [esp + 0x13]
ja 0x1001fac0
mov eax, dword [edi + 0x14]
jmp 0x1001fac2
xor eax, eax
push eax
lea ecx, [ebx + 0x48]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fae5
mov eax, dword [edi + 0x14]
cmp eax, esi
je 0x1001fae5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x14], esi
cmp dword [ebx + 0x5c], 0
je 0x1001fb2f
xor esi, esi
cmp dword [ebx + 0x5c], esi
je 0x1001fb1e
push dword [edi + 0x1c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x5c], eax
setbe byte [esp + 0x13]
ja 0x1001fb0a
mov eax, dword [edi + 0x1c]
jmp 0x1001fb0c
xor eax, eax
push eax
lea ecx, [ebx + 0x58]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fb2f
mov eax, dword [edi + 0x1c]
cmp eax, esi
je 0x1001fb2f
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 + 0x64], 0
je 0x1001fb8b
add eax, 0x60
xor esi, esi
add eax, ebx
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], esi
je 0x1001fb7a
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 0x1001fb67
mov eax, dword [edi + 0x2c]
jmp 0x1001fb69
xor eax, eax
push eax
mov ecx, edx
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fb8b
mov eax, dword [edi + 0x2c]
cmp eax, esi
je 0x1001fb8b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x2c], esi
cmp dword [ebx + 0xcc], 0
je 0x1001fbe1
xor esi, esi
cmp dword [ebx + 0xcc], esi
je 0x1001fbd0
push dword [edi + 0x50]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0xcc], eax
setbe byte [esp + 0x13]
ja 0x1001fbb9
mov eax, dword [edi + 0x50]
jmp 0x1001fbbb
xor eax, eax
push eax
lea ecx, [ebx + 0xc8]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fbe1
mov eax, dword [edi + 0x50]
cmp eax, esi
je 0x1001fbe1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x50], esi
cmp word [0x10059e08], 0x42
jb 0x1001fc63
mov eax, dword [ebx]
mov eax, dword [eax + 8]
cmp dword [eax + ebx + 0x54], 0
je 0x1001fc63
add ebx, 0x50
lea ecx, [esp + 0x30]
add eax, ebx
push eax
call fcn.1001d3d0
mov ebx, eax
xor esi, esi
add esp, 4
cmp dword [ebx + 4], esi
je 0x1001fc3d
push dword [edi + 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x1001fc2a
mov eax, dword [edi + 0x18]
jmp 0x1001fc2c
xor eax, eax
push eax
mov ecx, ebx
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fc4e
mov eax, dword [edi + 0x18]
cmp eax, esi
je 0x1001fc4e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 0x18], esi
mov eax, dword [esp + 0x30]
cmp eax, 0x10059da0
je 0x1001fc63
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x14]
cmp byte [esi + 0x16], 0
jne 0x1001fc7d
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
mov esi, dword [eax + esi + 0x94]
test esi, esi
je 0x1001fd39
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
cmp dword [eax + esi + 0x80], 0
je 0x1001fce5
add eax, 0x7c
xor ebx, ebx
add eax, esi
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], ebx
je 0x1001fcd4
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 0x1001fcc1
mov eax, dword [edi + 0x28]
jmp 0x1001fcc3
xor eax, eax
push eax
mov ecx, edx
call fcn.10004fa0
cmp byte [esp + 0x13], 0
mov ebx, eax
jne 0x1001fce5
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x1001fce5
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 + 0x50], 0
je 0x1001fd39
lea ebx, [eax + esi]
xor esi, esi
cmp dword [ebx + 0x50], esi
je 0x1001fd28
push dword [edi + 0x34]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x50], eax
setbe byte [esp + 0x13]
ja 0x1001fd14
mov eax, dword [edi + 0x34]
jmp 0x1001fd16
xor eax, eax
push eax
lea ecx, [ebx + 0x4c]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fd39
mov eax, dword [edi + 0x34]
cmp eax, esi
je 0x1001fd39
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 0x10020177
cmp word [ebx + 8], 1
jne 0x10020177
cmp dword [ebx + 0x44], 0
je 0x1001fd9d
xor esi, esi
cmp dword [ebx + 0x44], esi
je 0x1001fd8c
push dword [edi + 4]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 0x44], eax
setbe byte [esp + 0x13]
ja 0x1001fd78
mov eax, dword [edi + 4]
jmp 0x1001fd7a
xor eax, eax
push eax
lea ecx, [ebx + 0x40]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x1001fd9d
mov eax, dword [edi + 4]
cmp eax, esi
je 0x1001fd9d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi + 4], esi
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10020168
cmp byte [ebx + 0x21], 0
je 0x10020168
mov ecx, dword [0x10059df0]
push eax
lea ecx, [ecx + 0x1134]
call fcn.10039c90
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1001fdd7
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 0x1001fe20
mov byte [edx + 3], 0
mov esi, 3
mov cx, word [0x10054870]
mov word [edx], cx
mov al, byte [0x10054872]
mov byte [edx + 2], al
mov dword [esp + 0x18], 0x13
jmp 0x1001fe36
xor esi, esi
mov dword [esp + 0x20], 0x10059da0
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.10009aa0
mov ecx, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x30]
test ecx, ecx
jle 0x1001fe9f
lea eax, [ecx + 1]
add eax, esi
cmp dword [esp + 0x18], eax
jae 0x1001fe7d
push eax
lea ecx, [esp + 0x24]
call fcn.10003580
mov esi, dword [esp + 0x24]
test eax, eax
je 0x1001fe9b
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, 0x10059da0
je 0x1001feb0
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp dword [ebx + 0x54], 0
je 0x100200f5
mov al, byte [esp + 0x2c]
mov ecx, 0x10059da0
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 0x1001fefd
push eax
lea ecx, [esp + 0x34]
call fcn.10003580
test eax, eax
je 0x10020116
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 [eax + esi], 0
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x24]
add esp, 0xc
mov al, byte [esp + 0x13]
test edx, edx
jle 0x1001ff8d
movsx ecx, al
movsx eax, byte [esp + 0x2c]
shl ecx, 8
or ecx, eax
lea eax, [edx + edx*2]
cmp ecx, 0x102
je 0x1001ff50
mov eax, edx
inc eax
add eax, esi
cmp dword [esp + 0x28], eax
jae 0x1001ff6f
push eax
lea ecx, [esp + 0x24]
call fcn.10003580
mov esi, dword [esp + 0x24]
test eax, eax
je 0x1001ff8d
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, 0x10059da0
je 0x1001ffa2
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.10009aa0
mov edx, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x30]
test edx, edx
jle 0x1002001d
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 0x1001ffdc
mov eax, edx
inc eax
add eax, esi
cmp dword [esp + 0x28], eax
jae 0x1001fffb
push eax
lea ecx, [esp + 0x24]
call fcn.10003580
mov esi, dword [esp + 0x24]
test eax, eax
je 0x10020019
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, 0x10059da0
je 0x1002002e
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea eax, [esi + 6]
cmp dword [esp + 0x28], eax
jae 0x10020049
push eax
lea ecx, [esp + 0x24]
call fcn.10003580
mov esi, dword [esp + 0x24]
test eax, eax
je 0x10020069
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 [0x100548e8]
mov byte [ecx + 4], al
push dword [ebx + 0x64]
mov edx, dword [ebx + 0x60]
lea ecx, [esp + 0x34]
call fcn.10009aa0
mov edx, dword [esp + 0x38]
add esp, 4
mov eax, dword [esp + 0x30]
test edx, edx
jle 0x100200e4
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 0x100200a3
mov eax, edx
inc eax
add eax, esi
cmp dword [esp + 0x28], eax
jae 0x100200c2
push eax
lea ecx, [esp + 0x24]
call fcn.10003580
mov esi, dword [esp + 0x24]
test eax, eax
je 0x100200e0
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, 0x10059da0
je 0x100200f5
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
xor eax, eax
mov dword [esp + 0x18], eax
test esi, esi
je 0x1002013e
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp esi, eax
setbe byte [esp + 0x13]
ja 0x10020127
mov eax, dword [edi + 0x30]
jmp 0x10020129
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x3c]
mov dword [esp + 0x18], edx
jmp 0x1001ff32
xor eax, eax
push eax
lea ecx, [esp + 0x24]
call fcn.10004710
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
jne 0x10020153
mov ecx, dword [edi + 0x30]
cmp ecx, eax
je 0x10020153
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, 0x10059da0
je 0x10020168
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp byte [ebx + 0x22], 0
je 0x10020177
mov eax, dword [ebp + 0x18]
or dword [eax], 0x100
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0x78]
test esi, esi
je 0x10020251
cmp word [esi + 8], 0xffff
jne 0x10020251
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x100201e5
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [ebx + 4], eax
je 0x100201d0
push dword [edi + 0xc]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x100201bb
mov eax, dword [edi + 0xc]
jmp 0x100201bd
xor eax, eax
push eax
mov ecx, ebx
call fcn.10004710
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
jne 0x100201e5
mov ecx, dword [edi + 0xc]
cmp ecx, eax
je 0x100201e5
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 0x1002020b
xor esi, esi
cmp dword [ebx + 4], esi
je 0x10020240
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x1002022d
mov eax, dword [edi + 0x30]
jmp 0x1002022f
lea ebx, [esi + 0x2c]
xor esi, esi
cmp dword [ebx + 4], esi
je 0x10020240
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x1002022d
mov eax, dword [edi + 0x30]
jmp 0x1002022f
xor eax, eax
push eax
mov ecx, ebx
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x10020251
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x10020251
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 0x100202a9
cmp word [eax + 8], 0xfffe
jne 0x100202a9
lea ebx, [eax + 0x1c]
xor esi, esi
cmp dword [ebx + 4], esi
je 0x10020298
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [ebx + 4], eax
setbe byte [esp + 0x13]
ja 0x10020285
mov eax, dword [edi + 0x30]
jmp 0x10020287
xor eax, eax
push eax
mov ecx, ebx
call fcn.10004710
cmp byte [esp + 0x13], 0
mov esi, eax
jne 0x100202a9
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x100202a9
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 0x1002031a
movzx eax, word [esi + 8]
cmp ax, 0xfffc
je 0x100202d0
cmp ax, 2
je 0x100202d0
cmp ax, 4
je 0x100202d0
cmp ax, 5
jne 0x1002031a
mov esi, dword [esi + 0x28]
test esi, esi
je 0x1002031a
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x10020309
push dword [edi + 0x30]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp dword [esi + 4], eax
setbe byte [esp + 0x13]
ja 0x100202f6
mov eax, dword [edi + 0x30]
jmp 0x100202f8
xor eax, eax
push eax
mov ecx, esi
call fcn.10004710
cmp byte [esp + 0x13], 0
mov ebx, eax
jne 0x1002031a
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x1002031a
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