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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, 0x400c
mov word [esp + 0x98], ax
mov word [esp + 0xa8], ax
movzx eax, word [edx]
mov byte [esp + 0xb8], 0
mov dword [esp + 0xc0], 0x4009
lea ecx, [esi - 4]
push edi
mov edi, dword [ebp + 0x18]
cmp eax, 8
jne 0x4a60a3
mov eax, dword [edx + 8]
mov dword [esp + 0x98], eax
mov dword [esp + 0xbd], 0
jmp 0x4a6209
cmp ax, cx
jne 0x4a60c4
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [esp + 0x98], eax
mov dword [esp + 0xbd], 0
jmp 0x4a6209
mov dword [esp + 0x98], 0
cmp eax, 0xa
jne 0x4a60f5
cmp dword [edx + 8], 0x80020004
jne 0x4a60f5
mov byte [esp + 0xbc], 1
mov dword [esp + 0xbd], 0x80020005
jmp 0x4a6209
cmp eax, 9
je 0x4a610a
mov ecx, eax
cmp ax, word [esp + 0xc4]
jne 0x4a619c
mov ecx, dword [edx + 8]
test eax, 0x4000
je 0x4a6116
mov ecx, dword [ecx]
test ecx, ecx
je 0x4a6812
push 0
push 0
lea edx, [esp + 0xa4]
xor eax, eax
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push edx
push 3
push 0
push 0x519ca0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0xbd], esi
test esi, esi
js 0x4a61f2
movzx ecx, word [esp + 0x9c]
lea edx, [esp + 0x9c]
mov esi, 0x4008
mov eax, ecx
cmp cx, si
jne 0x4a6189
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
jmp 0x4a61e2
cmp eax, 8
jne 0x4a6197
mov eax, dword [esp + 0xa4]
jmp 0x4a61e2
mov esi, 0x400c
cmp cx, 1
jne 0x4a61a9
mov esi, 0x800a005e
jmp 0x4a61eb
cmp cx, si
jne 0x4a61b6
mov edx, dword [edx + 8]
cmp word [edx], si
je 0x4a61ae
push 8
push 2
push 0x400
push edx
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0xbd], esi
test esi, esi
js 0x4a61f2
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x98], eax
xor esi, esi
mov dword [esp + 0xbd], esi
cmp byte [esp + 0xbc], 0
jne 0x4a6204
test esi, esi
js 0x4a681e
mov ecx, 0x4008
mov edx, dword [ebp + 0x10]
xor eax, eax
mov word [esp + 0x70], ax
mov word [esp + 0x80], ax
mov byte [esp + 0x90], 0
movzx eax, word [edx]
cmp eax, 8
jne 0x4a6242
mov eax, dword [edx + 8]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x91], 0
jmp 0x4a6387
cmp ax, cx
jne 0x4a6260
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x91], 0
jmp 0x4a6387
mov dword [esp + 0x6c], 0
cmp eax, 0xa
jne 0x4a628e
cmp dword [edx + 8], 0x80020004
jne 0x4a628e
mov byte [esp + 0x90], 1
mov dword [esp + 0x91], 0x80020005
jmp 0x4a6387
cmp eax, 9
je 0x4a629f
mov esi, 0x4009
mov ecx, eax
cmp ax, si
jne 0x4a631d
mov ecx, dword [edx + 8]
test eax, 0x4000
je 0x4a62ab
mov ecx, dword [ecx]
test ecx, ecx
je 0x4a67da
push 0
push 0
lea edx, [esp + 0x78]
xor eax, eax
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push edx
push 3
push 0
push 0x519ca0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x91], esi
test esi, esi
js 0x4a6375
movzx ecx, word [esp + 0x70]
lea edx, [esp + 0x70]
mov esi, 0x4008
mov eax, ecx
cmp cx, si
jne 0x4a6312
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
jmp 0x4a6368
cmp eax, 8
jne 0x4a631d
mov eax, dword [esp + 0x78]
jmp 0x4a6368
cmp cx, 1
jne 0x4a632a
mov esi, 0x800a005e
jmp 0x4a636e
mov eax, 0x400c
cmp cx, ax
jne 0x4a633c
mov edx, dword [edx + 8]
cmp word [edx], ax
je 0x4a6334
push 8
push 2
push 0x400
push edx
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x91], esi
test esi, esi
js 0x4a6375
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
xor esi, esi
mov dword [esp + 0x91], esi
cmp byte [esp + 0x90], 0
jne 0x4a6387
test esi, esi
js 0x4a67e6
xor eax, eax
mov byte [esp + 0x64], 0
mov word [esp + 0x44], ax
mov word [esp + 0x54], ax
movzx eax, word [ebx]
cmp eax, 8
jne 0x4a63b4
mov eax, dword [ebx + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x65], 0
jmp 0x4a64e0
mov ecx, 0x4008
cmp ax, cx
jne 0x4a63d4
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov dword [esp + 0x65], 0
jmp 0x4a64e0
mov dword [esp + 0x40], 0
cmp eax, 0xa
jne 0x4a63fc
cmp dword [ebx + 8], 0x80020004
jne 0x4a63fc
mov byte [esp + 0x64], 1
mov dword [esp + 0x65], 0x80020005
jmp 0x4a64e0
cmp eax, 9
je 0x4a640d
mov edx, 0x4009
mov ecx, eax
cmp ax, dx
jne 0x4a6484
mov ecx, dword [ebx + 8]
test eax, 0x4000
je 0x4a6419
mov ecx, dword [ecx]
test ecx, ecx
je 0x4a67ab
push 0
push 0
lea edx, [esp + 0x4c]
xor eax, eax
push edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push edx
push 3
push 0
push 0x519ca0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x65], esi
test esi, esi
js 0x4a64d1
movzx ecx, word [esp + 0x44]
lea ebx, [esp + 0x44]
mov esi, 0x4008
mov eax, ecx
cmp cx, si
jne 0x4a6479
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
jmp 0x4a64c7
cmp eax, 8
jne 0x4a6484
mov eax, dword [esp + 0x4c]
jmp 0x4a64c7
cmp cx, 1
jne 0x4a6491
mov esi, 0x800a005e
jmp 0x4a64cd
mov eax, 0x400c
cmp cx, ax
jne 0x4a64a4
nop
mov ebx, dword [ebx + 8]
cmp word [ebx], ax
je 0x4a649c
push 8
push 2
push 0x400
push ebx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x65], esi
test esi, esi
js 0x4a64d1
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
xor esi, esi
mov dword [esp + 0x65], esi
cmp byte [esp + 0x64], 0
jne 0x4a64e0
test esi, esi
js 0x4a67b4
xor eax, eax
mov byte [esp + 0x38], 0
mov word [esp + 0x28], ax
movzx eax, word [edi]
mov ecx, eax
cmp eax, 3
jne 0x4a650a
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x39], 0
jmp 0x4a6637
mov edx, 0x4003
cmp ax, dx
jne 0x4a652a
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x39], 0
jmp 0x4a6637
mov dword [esp + 0x24], 0
cmp eax, 0xa
jne 0x4a6552
cmp dword [edi + 8], 0x80020004
jne 0x4a6552
mov byte [esp + 0x38], 1
mov dword [esp + 0x39], 0x80020005
jmp 0x4a6637
cmp eax, 9
je 0x4a6561
mov edx, 0x4009
cmp ax, dx
jne 0x4a65c8
mov ecx, dword [edi + 8]
test eax, 0x4000
je 0x4a656d
mov ecx, dword [ecx]
test ecx, ecx
je 0x4a678b
push 0
push 0
lea edx, [esp + 0x30]
xor eax, eax
push edx
lea edx, [esp + 0xd4]
mov dword [esp + 0xd4], eax
push edx
push 3
push 0
push 0x519ca0
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x39], esi
test esi, esi
js 0x4a6628
movzx ecx, word [esp + 0x28]
lea edi, [esp + 0x28]
movzx eax, cx
cmp eax, 1
jne 0x4a65d7
mov esi, 0x800a005e
jmp 0x4a6624
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, 0x400c
cmp ax, cx
jne 0x4a65fb
mov edi, dword [edi + 8]
cmp word [edi], cx
je 0x4a65f3
push 3
push 2
push 0x400
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x39], esi
test esi, esi
js 0x4a6628
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x39], esi
cmp byte [esp + 0x38], 0
jne 0x4a6637
test esi, esi
js 0x4a6794
cmp byte [esp + 0x64], 0
jne 0x4a664f
cmp byte [esp + 0x38], 0
je 0x4a664f
mov esi, 0x80004005
jmp 0x4a6794
mov edi, dword [esp + 0x98]
xor ebx, ebx
test edi, edi
je 0x4a667b
mov eax, dword [edi - 4]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x3ff
jbe 0x4a667b
push 0x3ff
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
mov edi, ebx
mov ecx, dword [esp + 0x6c]
xor esi, esi
cmp byte [esp + 0x90], 0
je 0x4a66a4
mov ecx, dword [0x4cef38]
test ecx, ecx
jne 0x4a66a8
push 0x51e5d4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, esi
test ecx, ecx
je 0x4a66c7
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x3ff
jbe 0x4a66c7
push 0x3ff
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
mov ecx, esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xd8], 0x28
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0x4a6001
mov dword [esp + 0xfc], 0
call fcn.004c50b1
mov ecx, dword [esp + 0x40]
mov dword [eax + 0xbf], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc3], ecx
mov eax, dword [eax + 0x16c]
test eax, eax
je 0x4a6760
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4a6760
mov eax, dword [eax + 0x3c]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxIndirectW]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ecx], eax
test ebx, ebx
je 0x4a6780
push ebx
call edi
test esi, esi
je 0x4a6787
push esi
call edi
xor esi, esi
jmp 0x4a6794
mov esi, 0x800a005b
mov dword [esp + 0x39], esi
cmp word [esp + 0x28], 0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x4a67ba
lea eax, [esp + 0x28]
push eax
call ebx
jmp 0x4a67ba
mov esi, 0x800a005b
mov dword [esp + 0x65], esi
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x44], 0
je 0x4a67c9
lea eax, [esp + 0x44]
push eax
call ebx
cmp word [esp + 0x54], 0
je 0x4a67e6
lea eax, [esp + 0x54]
push eax
call ebx
jmp 0x4a67e6
mov esi, 0x800a005b
mov dword [esp + 0x91], esi
cmp word [esp + 0x70], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x4a67fb
lea eax, [esp + 0x70]
push eax
call edi
cmp word [esp + 0x80], 0
je 0x4a6824
lea eax, [esp + 0x80]
push eax
call edi
jmp 0x4a6824
mov esi, 0x800a005b
mov dword [esp + 0xbd], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x9c], 0
je 0x4a6839
lea eax, [esp + 0x9c]
push eax
call edi
cmp word [esp + 0xac], 0
je 0x4a684e
lea eax, [esp + 0xac]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18