Function at 0x52428c
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 0x5242f3
mov eax, dword [edx + 8]
mov dword [esp + 0x98], eax
mov dword [esp + 0xbd], 0
jmp 0x524459
cmp ax, cx
jne 0x524314
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [esp + 0x98], eax
mov dword [esp + 0xbd], 0
jmp 0x524459
mov dword [esp + 0x98], 0
cmp eax, 0xa
jne 0x524345
cmp dword [edx + 8], 0x80020004
jne 0x524345
mov byte [esp + 0xbc], 1
mov dword [esp + 0xbd], 0x80020005
jmp 0x524459
cmp eax, 9
je 0x52435a
mov ecx, eax
cmp ax, word [esp + 0xc4]
jne 0x5243ec
mov ecx, dword [edx + 8]
test eax, 0x4000
je 0x524366
mov ecx, dword [ecx]
test ecx, ecx
je 0x524a5c
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 0x5c0a38
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 0x524442
movzx ecx, word [esp + 0x9c]
lea edx, [esp + 0x9c]
mov esi, 0x4008
mov eax, ecx
cmp cx, si
jne 0x5243d9
mov eax, dword [esp + 0xa4]
mov eax, dword [eax]
jmp 0x524432
cmp eax, 8
jne 0x5243e7
mov eax, dword [esp + 0xa4]
jmp 0x524432
mov esi, 0x400c
cmp cx, 1
jne 0x5243f9
mov esi, 0x800a005e
jmp 0x52443b
cmp cx, si
jne 0x524406
mov edx, dword [edx + 8]
cmp word [edx], si
je 0x5243fe
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 0x524442
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x98], eax
xor esi, esi
mov dword [esp + 0xbd], esi
cmp byte [esp + 0xbc], 0
jne 0x524454
test esi, esi
js 0x524a68
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 0x524492
mov eax, dword [edx + 8]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x91], 0
jmp 0x5245d7
cmp ax, cx
jne 0x5244b0
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x91], 0
jmp 0x5245d7
mov dword [esp + 0x6c], 0
cmp eax, 0xa
jne 0x5244de
cmp dword [edx + 8], 0x80020004
jne 0x5244de
mov byte [esp + 0x90], 1
mov dword [esp + 0x91], 0x80020005
jmp 0x5245d7
cmp eax, 9
je 0x5244ef
mov esi, 0x4009
mov ecx, eax
cmp ax, si
jne 0x52456d
mov ecx, dword [edx + 8]
test eax, 0x4000
je 0x5244fb
mov ecx, dword [ecx]
test ecx, ecx
je 0x524a24
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 0x5c0a38
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 0x5245c5
movzx ecx, word [esp + 0x70]
lea edx, [esp + 0x70]
mov esi, 0x4008
mov eax, ecx
cmp cx, si
jne 0x524562
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
jmp 0x5245b8
cmp eax, 8
jne 0x52456d
mov eax, dword [esp + 0x78]
jmp 0x5245b8
cmp cx, 1
jne 0x52457a
mov esi, 0x800a005e
jmp 0x5245be
mov eax, 0x400c
cmp cx, ax
jne 0x52458c
mov edx, dword [edx + 8]
cmp word [edx], ax
je 0x524584
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 0x5245c5
mov eax, dword [esp + 0x88]
mov dword [esp + 0x6c], eax
xor esi, esi
mov dword [esp + 0x91], esi
cmp byte [esp + 0x90], 0
jne 0x5245d7
test esi, esi
js 0x524a30
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 0x524604
mov eax, dword [ebx + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x65], 0
jmp 0x524730
mov ecx, 0x4008
cmp ax, cx
jne 0x524624
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov dword [esp + 0x65], 0
jmp 0x524730
mov dword [esp + 0x40], 0
cmp eax, 0xa
jne 0x52464c
cmp dword [ebx + 8], 0x80020004
jne 0x52464c
mov byte [esp + 0x64], 1
mov dword [esp + 0x65], 0x80020005
jmp 0x524730
cmp eax, 9
je 0x52465d
mov edx, 0x4009
mov ecx, eax
cmp ax, dx
jne 0x5246d4
mov ecx, dword [ebx + 8]
test eax, 0x4000
je 0x524669
mov ecx, dword [ecx]
test ecx, ecx
je 0x5249f5
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 0x5c0a38
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 0x524721
movzx ecx, word [esp + 0x44]
lea ebx, [esp + 0x44]
mov esi, 0x4008
mov eax, ecx
cmp cx, si
jne 0x5246c9
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
jmp 0x524717
cmp eax, 8
jne 0x5246d4
mov eax, dword [esp + 0x4c]
jmp 0x524717
cmp cx, 1
jne 0x5246e1
mov esi, 0x800a005e
jmp 0x52471d
mov eax, 0x400c
cmp cx, ax
jne 0x5246f4
nop
mov ebx, dword [ebx + 8]
cmp word [ebx], ax
je 0x5246ec
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 0x524721
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x40], eax
xor esi, esi
mov dword [esp + 0x65], esi
cmp byte [esp + 0x64], 0
jne 0x524730
test esi, esi
js 0x5249fe
xor eax, eax
mov byte [esp + 0x38], 0
mov word [esp + 0x28], ax
movzx eax, word [edi]
mov ecx, eax
cmp eax, 3
jne 0x52475a
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x39], 0
jmp 0x524887
mov edx, 0x4003
cmp ax, dx
jne 0x52477a
mov eax, dword [edi + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x39], 0
jmp 0x524887
mov dword [esp + 0x24], 0
cmp eax, 0xa
jne 0x5247a2
cmp dword [edi + 8], 0x80020004
jne 0x5247a2
mov byte [esp + 0x38], 1
mov dword [esp + 0x39], 0x80020005
jmp 0x524887
cmp eax, 9
je 0x5247b1
mov edx, 0x4009
cmp ax, dx
jne 0x524818
mov ecx, dword [edi + 8]
test eax, 0x4000
je 0x5247bd
mov ecx, dword [ecx]
test ecx, ecx
je 0x5249d5
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 0x5c0a38
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 0x524878
movzx ecx, word [esp + 0x28]
lea edi, [esp + 0x28]
movzx eax, cx
cmp eax, 1
jne 0x524827
mov esi, 0x800a005e
jmp 0x524874
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 0x52484b
mov edi, dword [edi + 8]
cmp word [edi], cx
je 0x524843
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 0x524878
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x39], esi
cmp byte [esp + 0x38], 0
jne 0x524887
test esi, esi
js 0x5249de
cmp byte [esp + 0x64], 0
jne 0x52489f
cmp byte [esp + 0x38], 0
je 0x52489f
mov esi, 0x80004005
jmp 0x5249de
mov edi, dword [esp + 0x98]
xor ebx, ebx
test edi, edi
je 0x5248cb
mov eax, dword [edi - 4]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x3ff
jbe 0x5248cb
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 0x5248f4
mov ecx, dword [0x58abec]
test ecx, ecx
jne 0x5248f8
push 0x5c4be4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov ecx, esi
test ecx, ecx
je 0x524917
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x3ff
jbe 0x524917
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], 0x524254
mov dword [esp + 0xfc], 0
call fcn.0055ff80
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x5a], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x5e], ecx
mov eax, dword [eax + 0x105]
test eax, eax
je 0x5249aa
mov eax, dword [eax + 0x48]
test eax, eax
je 0x5249aa
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 0x5249ca
push ebx
call edi
test esi, esi
je 0x5249d1
push esi
call edi
xor esi, esi
jmp 0x5249de
mov esi, 0x800a005b
mov dword [esp + 0x39], esi
cmp word [esp + 0x28], 0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x524a04
lea eax, [esp + 0x28]
push eax
call ebx
jmp 0x524a04
mov esi, 0x800a005b
mov dword [esp + 0x65], esi
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x44], 0
je 0x524a13
lea eax, [esp + 0x44]
push eax
call ebx
cmp word [esp + 0x54], 0
je 0x524a30
lea eax, [esp + 0x54]
push eax
call ebx
jmp 0x524a30
mov esi, 0x800a005b
mov dword [esp + 0x91], esi
cmp word [esp + 0x70], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x524a45
lea eax, [esp + 0x70]
push eax
call edi
cmp word [esp + 0x80], 0
je 0x524a6e
lea eax, [esp + 0x80]
push eax
call edi
jmp 0x524a6e
mov esi, 0x800a005b
mov dword [esp + 0xbd], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x9c], 0
je 0x524a83
lea eax, [esp + 0x9c]
push eax
call edi
cmp word [esp + 0xac], 0
je 0x524a98
lea eax, [esp + 0xac]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18