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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
xor eax, eax
mov dword [esp + 0x6c], ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
xor esi, esi
mov dword [esp + 0xa4], eax
mov byte [esp + 0xa8], al
mov dword [esp + 0xa9], eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0xa0], esi
movzx eax, word [ecx]
mov word [esp + 0x78], ax
movzx eax, word [ecx + 2]
mov word [esp + 0x7a], ax
lea eax, [ecx + 4]
mov dword [esp + 0x7c], eax
movzx eax, bx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0xc], edi
test bl, 2
jne 0x4c28bc
cmp bx, 1
jne 0x4c28c4
mov ebx, 2
mov dword [ebp + 0x18], ebx
xor edx, edx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [esp + 0x10], edx
mov byte [esp + 0x1b], dl
jne 0x4c28e2
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
test esi, esi
jne 0x4c28f0
movzx ecx, word [esp + 0x7e]
add ecx, 4
jmp 0x4c28fc
mov ecx, dword [esp + 0x88]
add ecx, 2
add ecx, esi
mov dword [esp + 0x84], ecx
add ecx, dword [esp + 0x78]
movzx eax, word [ecx]
mov dword [esp + 0x88], eax
test eax, eax
je 0x4c2d15
push eax
lea eax, [ecx + 2]
push eax
lea ecx, [esp + 0x94]
call fcn.004c272f
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [esp + 0x9c]
jne 0x4c297d
mov al, byte [esp + 0xaa]
test al, al
jns 0x4c2946
cmp ecx, 0xfffffffc
jne 0x4c29c3
movzx edx, al
xor ecx, ecx
and edx, 0xf
cmp edx, 1
sete cl
xor eax, eax
test edx, edx
sete al
or ecx, eax
je 0x4c2964
mov edx, 2
movzx eax, bx
cmp edx, eax
je 0x4c29d1
cmp edx, 2
je 0x4c298d
jmp 0x4c297d
mov esi, dword [esp + 0x84]
mov edx, dword [esp + 0x10]
jmp 0x4c28e2
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x90]
call fcn.004c3147
test al, al
je 0x4c29b1
cmp byte [esp + 0xd1], 0
jne 0x4c29b1
mov byte [esp + 0x1b], 1
mov esi, dword [esp + 0x84]
mov edx, esi
mov dword [esp + 0x10], edx
jmp 0x4c28e2
mov eax, 0x800a0005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov esi, dword [0x4cefa4]
test esi, esi
je 0x4c29ec
call fcn.004c50b1
cmp dword [eax + 2], 0
jne 0x4c29ec
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], eax
xor eax, eax
test byte [esp + 0xab], 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x50], al
mov eax, dword [esp + 0x1c]
mov word [esp + 0x51], ax
mov eax, edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
je 0x4c2abf
mov ecx, dword [edi + 0xc]
mov edx, 0x10
mov eax, dword [edi + 8]
mov dword [esp + 0x64], ecx
inc eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x5c], ecx
xor ecx, ecx
mov dword [esp + 0x60], eax
mul edx
seto cl
neg ecx
or ecx, eax
jne 0x4c2a6a
xor eax, eax
jmp 0x4c2a79
push ecx
push 8
push dword [0x4cefc8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [edi + 8]
shl ecx, 4
push ecx
push dword [edi]
mov dword [esp + 0x60], eax
push eax
call fcn.004c4b46
mov ecx, dword [edi + 8]
add esp, 0xc
mov eax, dword [esp + 0x58]
add ecx, ecx
mov edx, 2
mov word [eax + ecx*8], dx
call fcn.004c50b1
mov edx, dword [edi + 8]
add edx, edx
mov cx, word [eax + 0x178]
mov eax, dword [esp + 0x58]
mov word [eax + edx*8 + 8], cx
lea eax, [esp + 0x58]
mov edi, dword [ebp + 0x20]
lea ecx, [esp + 0x30]
push edi
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004c22b6
mov ebx, eax
mov eax, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
test ebx, ebx
js 0x4c2cbf
push dword [ebp + 0x28]
mov esi, dword [ebp + 0x24]
lea eax, [esp + 0x7c]
push esi
push dword [ebp + 8]
lea ecx, [esp + 0x3c]
push dword [esp + 0x20]
push eax
call fcn.004c1a30
test byte [esp + 0xab], 1
mov ebx, eax
mov dword [esp + 0xc], ebx
je 0x4c2b31
push dword [esp + 0x58]
push 0
push dword [0x4cefc8]
call dword [esp + 0x1c]
test ebx, ebx
jns 0x4c2bad
test esi, esi
je 0x4c2cbf
call fcn.004c50b1
mov ecx, dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov edi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x4c2b59
xor eax, eax
jmp 0x4c2b63
push dword [eax - 4]
push eax
call ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4c2b73
push dword [eax - 4]
push eax
call ecx
mov dword [esi + 4], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4c2b85
push dword [eax - 4]
push eax
call dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x1c], ebx
mov ebx, 0x80020009
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
jmp 0x4c2cbb
cmp byte [esp + 0x50], 0
je 0x4c2cbb
cmp word [edi], 9
jne 0x4c2cb1
cmp dword [edi + 8], 0
je 0x4c2cb1
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x20]
push ecx
push dword [ebp + 0x1c]
lea ecx, [edi + 8]
push dword [ebp + 0x18]
push 0
call fcn.004c1706
mov ecx, dword [edi + 8]
push ecx
mov dword [esp + 0x18], eax
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
jns 0x4c2c94
test esi, esi
je 0x4c2c7b
call fcn.004c50b1
mov ebx, dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov edi, eax
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x4c2c28
xor eax, eax
jmp 0x4c2c2e
push dword [eax - 4]
push eax
call ebx
mov dword [esi + 8], eax
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4c2c3e
push dword [eax - 4]
push eax
call ebx
mov dword [esi + 4], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4c2c4e
push dword [eax - 4]
push eax
call ebx
mov dword [esi + 0xc], eax
mov ebx, 0x80020009
mov eax, dword [edi + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov dword [esp + 0xc], ebx
jmp 0x4c2c81
mov ebx, eax
mov dword [esp + 0xc], eax
cmp word [esp + 0x20], 0
je 0x4c2cbf
lea eax, [esp + 0x20]
push eax
call dword [esp + 0x20]
jmp 0x4c2cbf
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], eax
jmp 0x4c2cbb
push edi
call dword [esp + 0x20]
mov ebx, 0x80020005
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c2cd4
push eax
push 0
push dword [0x4cefc8]
call dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x4c2d01
mov ebx, dword [esp + 0x1c]
mov esi, dword [edi + 0x10]
push edi
call ebx
push edi
push 0
push dword [0x4cefc8]
call dword [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x3c], edi
test esi, esi
jne 0x4c2ce0
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x40]
push eax
call dword [esp + 0x20]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 8]
cmp bx, 4
je 0x4c2d2b
cmp bx, 8
jne 0x4c3031
test edx, edx
je 0x4c3031
mov bl, byte [esp + 0x1b]
lea ecx, [esp + 0xd8]
xor eax, eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
test bl, bl
je 0x4c2d73
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0x30], edx
test bl, bl
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
setne al
mov dword [esp + 0x3c], 0
dec eax
and eax, dword [esp + 0xc]
mov dword [ebp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x50], al
mov eax, dword [esp + 0x1c]
mov word [esp + 0x51], ax
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x3c]
call fcn.004c22b6
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], ebx
test esi, esi
js 0x4c2f7a
push dword [ebp + 0x28]
lea eax, [esp + 0x7c]
push edi
push dword [ebp + 8]
lea ecx, [esp + 0x3c]
push dword [esp + 0x20]
push eax
call fcn.004c1a30
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
jns 0x4c2e8a
test edi, edi
je 0x4c2f7a
call fcn.004c50b1
mov ecx, dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov ebx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x4c2e33
xor eax, eax
jmp 0x4c2e3d
push dword [eax - 4]
push eax
call ecx
mov ecx, dword [esp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4c2e4d
push dword [eax - 4]
push eax
call ecx
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4c2e5f
push dword [eax - 4]
push eax
call dword [esp + 0x18]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], esi
mov dword [edi], eax
mov dword [esp + 0xc], 0x80020009
jmp 0x4c2f7a
cmp word [esp + 0x20], 9
jne 0x4c2fd0
cmp dword [esp + 0x28], 0
je 0x4c2fd0
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
call fcn.004c1706
mov esi, eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x10], esi
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jns 0x4c2f6b
test edi, edi
je 0x4c2f6b
call fcn.004c50b1
mov edx, dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x4c2f07
xor ecx, ecx
jmp 0x4c2f17
push dword [ecx - 4]
push ecx
call edx
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4c2f2d
push dword [ecx - 4]
push ecx
call edx
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x4c2f45
push dword [ecx - 4]
push ecx
call dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0xc], ecx
mov eax, dword [eax + 0x40]
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], esi
mov dword [edi], eax
mov dword [esp + 0xc], 0x80020009
cmp word [esp + 0x68], 0
je 0x4c2f7a
lea eax, [esp + 0x68]
push eax
call ebx
mov eax, dword [esp + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x4c2f93
push eax
push 0
push dword [0x4cefc8]
call ebx
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x4c2fba
mov edi, edi
mov esi, dword [edi + 0x10]
push edi
call dword [esp + 0x20]
push edi
push 0
push dword [0x4cefc8]
call ebx
mov edi, esi
mov dword [esp + 0x3c], edi
test esi, esi
jne 0x4c2f9d
lea eax, [esp + 0x40]
push eax
call dword [esp + 0x20]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4c2ff2
push eax
push 0
push dword [0x4cefc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x4c3020
lea ecx, [ecx]
mov esi, dword [ebx + 0x10]
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ebx
push 0
push dword [0x4cefc8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, esi
mov dword [esp + 0x3c], ebx
test esi, esi
jne 0x4c2ffd
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
test byte [esp + 0x7c], 1
je 0x4c30e5
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c304d
call fcn.004c3905
mov eax, dword [esp + 0x14]
push dword [ebp + 0x28]
sub esi, dword [eax]
push edi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov eax, dword [esi]
push ebx
push dword [ebp + 0x14]
push 0x519ca0
push dword [ebp + 0xc]
push esi
call dword [eax + 0x18]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x4c30ea
test edi, edi
je 0x4c30ea
call fcn.004c50b1
mov ebx, dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov esi, eax
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x4c308f
xor eax, eax
jmp 0x4c3095
push dword [ecx - 4]
push ecx
call ebx
mov dword [edi + 8], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4c30a5
push dword [eax - 4]
push eax
call ebx
mov dword [edi + 4], eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c30b5
push dword [eax - 4]
push eax
call ebx
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x1c], eax
xor eax, eax
mov dword [edi], eax
mov eax, 0x80020009
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, 0x80020003
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24