Function at 0x4ae6b0
Capabilities:
Connect to wmi namespace via wbemlocator
Get common file path
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa78
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x104
lea ecx, [ebp - 0xa24]
push ecx
mov dword [ebp - 0xa60], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor edi, edi
push edi
mov dword [ebp - 0xa70], 0x63
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], 0
je 0x4ae7bc
lea edx, [ebp - 0xa44]
push edx
push 0x502118
push 1
push edi
push 0x5021e8
mov dword [ebp - 0xa44], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4ae7b6
mov eax, dword [ebp - 0xa44]
lea edx, [ebp - 0xa38]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0xa38], edi
mov ecx, dword [eax]
push 0x52619c
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4ae7a8
mov eax, dword [ebp - 0xa38]
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0xa38]
js 0x4ae7a0
lea edx, [ebp - 0xa50]
push edx
push edi
push 0x30
push 0x526728
mov dword [ebp - 0xa50], edi
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4ae7cf
mov eax, dword [ebp - 0xa38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xa44]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push 0x800
mov dword [ebp - 0xa4c], edi
call fcn.004e4240
mov ebx, eax
mov eax, dword [ebp - 0xa50]
add esp, 4
mov dword [ebp - 0xa68], ebx
cmp eax, edi
je 0x4af9ae
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, edi
mov ecx, dword [eax]
lea edx, [ebp - 0xa4c]
push edx
lea edx, [ebp - 0xa6c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0xa4c], edi
je 0x4af9ae
push 0x3e
lea edx, [ebp - 0x9a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x9c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa6c]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.Antecedent
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4ae8c2
cmp word [ebp - 0xa34], 1
je 0x4ae8c2
mov ecx, dword [ebp - 0xa2c]
push 0x1f
push 0x22
push ecx
call fcn.004e46a9
add esp, 8
add eax, 2
push eax
lea edx, [ebp - 0x9c]
push edx
call fcn.004e4726
lea eax, [ebp - 0x9c]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x4ae8a0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4ae8a0
sub eax, edx
lea edx, [ebp - 0xa34]
sar eax, 1
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x9e], cx
call esi
push 0xfe
lea ecx, [ebp - 0x61a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x61c], ax
call fcn.004e7d90
mov eax, dword [ebp - 0xa6c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
add esp, 0xc
push edi
push edi
lea ecx, [ebp - 0xa34]
push ecx
push edi
push str.Dependent
push eax
call edx
test eax, eax
jne 0x4ae962
cmp word [ebp - 0xa34], 1
je 0x4ae962
mov eax, dword [ebp - 0xa2c]
push 0x7f
push 0x22
push eax
call fcn.004e46a9
add esp, 8
add eax, 2
push eax
lea ecx, [ebp - 0x61c]
push ecx
call fcn.004e4726
lea eax, [ebp - 0x61c]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4ae940
sub eax, edx
sar eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x61e], dx
lea eax, [ebp - 0xa34]
push eax
call esi
push 0x800
push edi
push ebx
call fcn.004e7d90
add esp, 0xc
lea ecx, [ebp - 0x9c]
push ecx
push str.SELECT__FROM_Win32_DiskDrive_WHERE_DeviceID___s
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xa38]
add esp, 0xc
lea ecx, [ebp - 0xa5c]
push ecx
push edi
push 0x30
push ebx
mov dword [ebp - 0xa5c], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push 0x526208
push eax
call edx
mov eax, dword [ebp - 0xa5c]
cmp eax, edi
je 0x4af998
mov ecx, dword [eax]
lea edx, [ebp - 0xa4c]
push edx
lea edx, [ebp - 0xa40]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0xa4c], edi
je 0x4af9ae
push 0x7e
lea edx, [ebp - 0x39a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x39c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push 0x526254
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4aea46
cmp word [ebp - 0xa34], 1
je 0x4aea46
mov ecx, dword [ebp - 0xa2c]
push 0x3f
push ecx
lea edx, [ebp - 0x39c]
push edx
call fcn.004e4726
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call esi
push 0x7e
lea edx, [ebp - 0x19a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x19c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.MediaType
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4aeb06
cmp word [ebp - 0xa34], 1
je 0x4aeb06
mov ecx, dword [ebp - 0xa2c]
push 0x3f
push ecx
lea edx, [ebp - 0x19c]
push edx
call fcn.004e4726
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x19c]
xor edx, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4aeac0
sub eax, esi
sar eax, 1
je 0x4aeb06
cmp word [ebp + edx*2 - 0x19c], 9
jne 0x4aeae9
mov ecx, 0x20
mov word [ebp + edx*2 - 0x19c], cx
lea eax, [ebp - 0x19c]
inc edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4aeaf3
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x4aead1
push 0x3e
lea eax, [ebp - 0x29a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x29c], dx
call fcn.004e7d90
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.InterfaceType
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4aeb75
cmp word [ebp - 0xa34], 1
je 0x4aeb75
mov ecx, dword [ebp - 0xa2c]
push 0x1f
push ecx
lea edx, [ebp - 0x29c]
push edx
call fcn.004e4726
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call esi
jmp 0x4aeb7b
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0xfe
lea edx, [ebp - 0x81a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x81c], cx
call fcn.004e7d90
add esp, 0xc
push 0x3e
lea ecx, [ebp - 0x1da]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x1dc], ax
call fcn.004e7d90
mov eax, dword [ebp - 0xa40]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
add esp, 0xc
push edi
push edi
lea ecx, [ebp - 0xa34]
push ecx
push edi
push str.DeviceID
push eax
call edx
test eax, eax
jne 0x4aec1f
cmp word [ebp - 0xa34], 1
je 0x4aec1f
mov eax, dword [ebp - 0xa2c]
push 0x1f
push eax
lea ecx, [ebp - 0x1dc]
push ecx
call fcn.004e4726
add esp, 0xc
lea edx, [ebp - 0xa34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x1dc]
push eax
lea esi, [ebp - 0x81c]
call fcn.004afa10
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 4
push 0x3e
lea edx, [ebp - 0x11a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x11c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.Size
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4aec86
cmp word [ebp - 0xa34], 1
je 0x4aec86
mov ecx, dword [ebp - 0xa2c]
push 0x1f
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.004e4726
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call esi
mov eax, dword [ebp - 0xa40]
mov ecx, dword [eax]
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.Index
push eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xa48], edi
call eax
test eax, eax
jne 0x4aeccd
cmp word [ebp - 0xa34], 1
je 0x4aeccd
movsx ecx, word [ebp - 0xa2c]
lea edx, [ebp - 0xa34]
push edx
mov dword [ebp - 0xa48], ecx
call esi
push 0xfe
lea ecx, [ebp - 0x71a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x71c], ax
call fcn.004e7d90
mov eax, dword [ebp - 0xa40]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
add esp, 0xc
push edi
push edi
lea ecx, [ebp - 0xa34]
push ecx
push edi
push str.SerialNumber
push eax
call edx
test eax, eax
jne 0x4aed37
cmp word [ebp - 0xa34], 1
je 0x4aed37
mov eax, dword [ebp - 0xa2c]
push 0x7f
push eax
lea ecx, [ebp - 0x71c]
push ecx
call fcn.004e4726
add esp, 0xc
lea edx, [ebp - 0xa34]
push edx
call esi
push 0x800
push edi
push ebx
call fcn.004e7d90
mov eax, dword [ebp - 0xa38]
add esp, 0xc
lea edx, [ebp - 0xa54]
push edx
push edi
push 0x30
push str.SELECT__FROM_Win32_LogicalDiskToPartition
mov dword [ebp - 0xa54], edi
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 0xa54]
mov dword [ebp - 0xa58], edi
cmp eax, edi
je 0x4af98a
mov ecx, dword [eax]
lea edx, [ebp - 0xa58]
push edx
lea edx, [ebp - 0xa74]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0xa58], edi
je 0x4af976
push 0xfe
lea edx, [ebp - 0x51a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x51c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa74]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.Antecedent
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4aee42
cmp word [ebp - 0xa34], 1
je 0x4aee42
mov ecx, dword [ebp - 0xa2c]
push 0x7f
push 0x22
push ecx
call fcn.004e46a9
add esp, 8
add eax, 2
push eax
lea edx, [ebp - 0x51c]
push edx
call fcn.004e4726
lea eax, [ebp - 0x51c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4aee20
sub eax, edx
lea edx, [ebp - 0xa34]
sar eax, 1
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x51e], cx
call esi
lea ecx, [ebp - 0x61c]
lea eax, [ebp - 0x51c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4aee76
cmp dx, di
je 0x4aee72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4aee76
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4aee50
xor eax, eax
jmp 0x4aee7b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x4af966
push edi
xor eax, eax
push edi
lea edx, [ebp - 0xa34]
push edx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0xa74]
mov ecx, dword [eax]
push edi
push str.Dependent
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4aef0f
cmp word [ebp - 0xa34], 1
je 0x4aef0f
mov ecx, dword [ebp - 0xa2c]
push 7
push 0x22
push ecx
call fcn.004e46a9
add esp, 8
add eax, 2
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.004e4726
lea eax, [ebp - 0x18]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4aeef0
sub eax, edx
lea edx, [ebp - 0xa34]
sar eax, 1
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x1a], cx
call esi
push 0x800
push edi
push ebx
call fcn.004e7d90
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push str.SELECT__FROM_Win32_LogicalDisk_WHERE_DeviceID___s
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xa38]
add esp, 0xc
lea edx, [ebp - 0xa64]
push edx
push edi
push 0x30
push ebx
mov dword [ebp - 0xa64], edi
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [ebp - 0xa64]
cmp eax, edi
je 0x4af95e
mov ecx, dword [eax]
lea edx, [ebp - 0xa58]
push edx
lea edx, [ebp - 0xa3c]
push edx
mov ebx, 1
push ebx
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0xa58], edi
je 0x4af976
push edi
xor ecx, ecx
xor eax, eax
push edi
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0xa34]
push ecx
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], ax
mov eax, dword [ebp - 0xa3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push edi
push str.DriveType
push eax
call edx
test eax, eax
jne 0x4aefeb
cmp word [ebp - 0xa34], bx
je 0x4aefeb
movsx ecx, word [ebp - 0xa2c]
push 0xa
lea eax, [ebp - 0x28]
push eax
push ecx
call fcn.004e45ff
add esp, 0xc
lea edx, [ebp - 0xa34]
push edx
call esi
push 0x3e
lea ecx, [ebp - 0x25a]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x25c], ax
call fcn.004e7d90
mov eax, dword [ebp - 0xa3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
add esp, 0xc
push edi
push edi
lea ecx, [ebp - 0xa34]
push ecx
push edi
push str.Description
push eax
call edx
test eax, eax
jne 0x4af051
cmp word [ebp - 0xa34], bx
je 0x4af051
mov eax, dword [ebp - 0xa2c]
push 0x1f
push eax
lea ecx, [ebp - 0x25c]
push ecx
call fcn.004e4726
add esp, 0xc
lea edx, [ebp - 0xa34]
push edx
call esi
xor eax, eax
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x56], eax
mov dword [ebp - 0x52], eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov dword [ebp - 0x46], eax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [eax]
push edi
push str.FileSystem
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4af0b8
cmp word [ebp - 0xa34], bx
je 0x4af0b8
mov ecx, dword [ebp - 0xa2c]
push 0xf
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.004e4726
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call esi
push 0x7e
lea edx, [ebp - 0x31a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x31c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.Size
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4af11e
cmp word [ebp - 0xa34], bx
je 0x4af11e
mov ecx, dword [ebp - 0xa2c]
push 0x3f
push ecx
lea edx, [ebp - 0x31c]
push edx
call fcn.004e4726
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call esi
push 0x7e
lea edx, [ebp - 0x41a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x41c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.FreeSpace
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4af184
cmp word [ebp - 0xa34], bx
je 0x4af184
mov ecx, dword [ebp - 0xa2c]
push 0x3f
push ecx
lea edx, [ebp - 0x41c]
push edx
call fcn.004e4726
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call esi
push 0x3e
lea edx, [ebp - 0x21a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x21c], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.VolumeSerialNumber
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4af1ea
cmp word [ebp - 0xa34], bx
je 0x4af1ea
mov ecx, dword [ebp - 0xa2c]
push 0x1f
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.004e4726
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call esi
push 0x3e
lea edx, [ebp - 0xda]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0xdc], cx
call fcn.004e7d90
mov eax, dword [ebp - 0xa3c]
mov ecx, dword [eax]
add esp, 0xc
push edi
push edi
lea edx, [ebp - 0xa34]
push edx
push edi
push str.VolumeName
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4af250
cmp word [ebp - 0xa34], bx
je 0x4af250
mov ecx, dword [ebp - 0xa2c]
push 0x1f
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.004e4726
add esp, 0xc
lea eax, [ebp - 0xa34]
push eax
call esi
push edi
xor ecx, ecx
xor eax, eax
push edi
mov word [ebp - 0x38], cx
lea ecx, [ebp - 0xa34]
push ecx
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0xa3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push edi
push str.MediaType
push eax
call edx
test eax, eax
jne 0x4af2ae
cmp word [ebp - 0xa34], bx
je 0x4af2ae
movsx ecx, word [ebp - 0xa2c]
push 0xa
lea eax, [ebp - 0x38]
push eax
push ecx
call fcn.004e45ff
add esp, 0xc
lea edx, [ebp - 0xa34]
push edx
call esi
push 0x1000
call fcn.004e4240
add esp, 4
push 0x1000
mov ebx, eax
push edi
push ebx
call fcn.004e7d90
lea eax, [ebp - 0x18]
mov edx, ebx
mov ecx, eax
add esp, 0xc
sub edx, ecx
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, di
jne 0x4af2d5
lea edi, [ebx - 2]
jmp 0x4af2f0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af2f0
mov edx, dword [0x51d454]
lea eax, [ebp - 0x28]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af310
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af320
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af340
mov eax, dword [0x51d454]
mov dword [edi], eax
lea eax, [ebp - 0x25c]
mov edx, eax
jmp 0x4af360
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af360
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af370
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af390
mov ecx, dword [0x51d454]
lea eax, [ebp - 0x58]
mov dword [edi], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af3b0
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af3c0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af3e0
mov edx, dword [0x51d454]
lea eax, [ebp - 0x31c]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af400
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af410
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af430
mov eax, dword [0x51d454]
mov dword [edi], eax
lea eax, [ebp - 0x41c]
mov edx, eax
jmp 0x4af450
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af450
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af460
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af480
mov ecx, dword [0x51d454]
lea eax, [ebp - 0x21c]
mov dword [edi], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af4a0
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af4b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af4d0
mov edx, dword [0x51d454]
lea eax, [ebp - 0xdc]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af4f0
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af500
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af520
mov eax, dword [0x51d454]
mov dword [edi], eax
lea eax, [ebp - 0x38]
mov edx, eax
jmp 0x4af540
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af540
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af550
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af570
mov ecx, dword [0x51d454]
push 2
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xa24]
push eax
mov dword [edi], ecx
call fcn.004e4207
add esp, 0xc
lea edi, [ebx - 2]
test eax, eax
jne 0x4af600
mov ecx, dword [ebp - 0xa48]
mov dword [ebp - 0xa70], ecx
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af5b0
mov edx, dword [0x526724]
mov dword [edi], edx
lea edi, [ebx - 2]
jmp 0x4af5d0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af5d0
mov eax, dword [0x51d454]
mov dword [edi], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af5e6
mov ecx, dword [0x526724]
mov dword [edi], ecx
jmp 0x4af673
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af600
mov edx, dword [0x51ce84]
mov dword [edi], edx
lea edi, [ebx - 2]
jmp 0x4af620
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af620
mov eax, dword [0x51d454]
mov ecx, dword [ebp - 0xa48]
mov dword [edi], eax
lea edi, [ebx - 2]
cmp dword [ebp - 0xa70], ecx
jne 0x4af660
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af644
mov edx, dword [0x526724]
mov dword [edi], edx
jmp 0x4af673
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af660
mov eax, dword [0x51ce84]
mov dword [edi], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af676
mov ecx, dword [0x51d454]
lea eax, [ebp - 0x39c]
mov dword [edi], ecx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af692
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af6a2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af6c1
mov edx, dword [0x51d454]
lea eax, [ebp - 0x19c]
mov dword [edi], edx
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af6e0
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af6f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af710
mov eax, dword [0x51d454]
mov dword [edi], eax
lea eax, [ebp - 0x29c]
mov edx, eax
jmp 0x4af730
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af730
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af740
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af760
mov ecx, dword [0x51d454]
lea eax, [ebp - 0x81c]
mov dword [edi], ecx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af780
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af790
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af7b0
mov edx, dword [0x51d454]
lea eax, [ebp - 0x11c]
mov dword [edi], edx
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af7d0
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af7e0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af800
mov eax, dword [0x51d454]
mov dword [edi], eax
lea eax, [ebp - 0x71c]
mov edx, eax
jmp 0x4af820
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af820
sub eax, edx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af830
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4af850
mov ecx, dword [0x51d454]
mov eax, ebx
mov dword [edi], ecx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af870
sub eax, edx
sar eax, 1
mov edx, 1
mov word [ebx + eax*2], dx
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af890
mov ecx, dword [ebp - 0xa60]
sub eax, edx
sar eax, 1
lea esi, [ecx + 2]
jmp 0x4af8b0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4af8b0
sub ecx, esi
sar ecx, 1
add ecx, eax
cmp ecx, 0x3cf0
jae 0x4af976
mov esi, dword [ebp - 0xa60]
mov eax, esi
lea edx, [eax + 2]
jmp 0x4af8e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af8e0
sub eax, edx
sar eax, 1
mov eax, ebx
jne 0x4af911
mov edx, esi
sub edx, ebx
jmp 0x4af900
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4af900
jmp 0x4af941
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4af913
mov edi, esi
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4af925
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.004e424b
mov eax, dword [ebp - 0xa64]
mov ebx, dword [ebp - 0xa68]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 4
xor edi, edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xa54]
cmp eax, edi
jne 0x4aed82
jmp 0x4af98a
mov eax, dword [ebp - 0xa54]
mov ebx, dword [ebp - 0xa68]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xa5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xa50]
cmp eax, edi
jne 0x4ae800
push 0x800
push edi
push ebx
call fcn.004e7d90
add esp, 0xc
push ebx
call fcn.004e424b
mov eax, dword [ebp - 0xa50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
mov eax, dword [ebp - 0xa38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xa44]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret