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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x806c
call fcn.0046ba78
cmp dword [ebp + 0x14], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
jl 0x455215
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x30], 0
test eax, eax
je 0x455223
cmp eax, 1
jne 0x4551eb
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x30001
jmp 0x45522b
push 1
push 0x55afd4
push 1
push 0x55afd4
push 0x30000
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 0x30001
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
jne 0x45522b
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x455240
mov eax, dword [ebx - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
jmp 0x455248
mov dword [esp + 0x28], 0
xor eax, eax
mov byte [esp + 0x68], 0
mov word [esp + 0x48], ax
mov word [esp + 0x58], ax
movzx eax, word [esi]
cmp eax, 8
jne 0x455275
mov edi, dword [esi + 8]
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], 0
jmp 0x4553fc
mov ecx, 0x4008
cmp ax, cx
jne 0x455295
mov eax, dword [esi + 8]
mov edi, dword [eax]
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], 0
jmp 0x4553fc
xor edi, edi
mov dword [esp + 0x44], edi
cmp eax, 0xa
jne 0x4552eb
cmp dword [esi + 8], 0x80020004
jne 0x4552eb
mov byte [esp + 0x68], 1
mov dword [esp + 0x69], 0x80020005
cmp dword [esp + 0x28], 0
mov edi, 0x55afd0
mov dword [esp + 0x44], edi
mov ebx, 1
je 0x45542f
cmp dword [ebp + 0xc], 0
jne 0x455463
test ebx, ebx
jne 0x455463
mov esi, 0x800a000e
jmp 0x455711
cmp eax, 9
je 0x455300
mov edx, 0x4009
mov ecx, eax
cmp ax, dx
jne 0x455393
mov ecx, dword [esi + 8]
test eax, 0x4000
je 0x45530c
mov ecx, dword [ecx]
test ecx, ecx
je 0x455708
push 0
push 0
lea edx, [esp + 0x50]
xor eax, eax
push edx
lea edx, [esp + 0x40]
mov dword [esp + 0x40], eax
push edx
push 3
push 0
push 0x556a40
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x69], esi
test esi, esi
js 0x4553e5
movzx ecx, word [esp + 0x48]
lea esi, [esp + 0x48]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x45537a
mov eax, dword [esp + 0x50]
xor esi, esi
mov edi, dword [eax]
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], esi
jmp 0x4553e9
cmp eax, 8
jne 0x45538f
mov edi, dword [esp + 0x50]
xor esi, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], esi
jmp 0x4553e9
mov edi, dword [esp + 0x44]
cmp cx, 1
jne 0x4553a4
mov esi, 0x800a005e
mov dword [esp + 0x69], esi
jmp 0x4553e9
mov eax, 0x400c
cmp cx, ax
jne 0x4553b6
mov esi, dword [esi + 8]
cmp word [esi], ax
je 0x4553ae
push 8
push 2
push 0x400
push esi
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x69], esi
test esi, esi
js 0x4553e5
mov edi, dword [esp + 0x60]
xor esi, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], esi
jmp 0x4553e9
mov edi, dword [esp + 0x44]
cmp byte [esp + 0x68], 0
jne 0x4552b6
test esi, esi
js 0x455711
test edi, edi
jne 0x455412
test ebx, ebx
jne 0x45540e
mov esi, 0x800a000e
jmp 0x455711
xor ebx, ebx
jmp 0x45541c
mov eax, dword [edi - 4]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp dword [esp + 0x28], 0
jne 0x4552cf
test ebx, ebx
je 0x4552cf
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 1
push 8
mov dword [esp + 0x44], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ecx + 8], eax
mov eax, 0x2008
mov word [ecx], ax
jmp 0x455711
mov ecx, 0x2000
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], ecx
xor esi, esi
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x14], eax
sub ecx, ebx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], esi
mov esi, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
test eax, eax
je 0x4556a6
cmp eax, 1
je 0x4555de
test ebx, ebx
jle 0x4555de
test ecx, ecx
js 0x4555de
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
cmp dword [ebp + 0x18], 0
jne 0x4554e7
cmp ebx, 1
jne 0x4554ca
mov ax, word [ecx]
cmp ax, word [edi]
jmp 0x455508
cmp ebx, 2
jne 0x4554d5
mov eax, dword [ecx]
cmp eax, dword [edi]
jmp 0x455508
lea eax, [ebx + ebx]
push eax
push edi
push ecx
call fcn.004b8aa5
add esp, 0xc
test eax, eax
jmp 0x455500
push ebx
push edi
push ebx
push ecx
push dword [esp + 0x3c]
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov edi, dword [esp + 0x44]
cmp eax, 2
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sete al
test al, al
je 0x4555c8
mov eax, dword [esp + 0x1c]
cmp esi, eax
jl 0x45559a
add eax, 0x20000
xor ecx, ecx
mov edx, 4
mov dword [esp + 0x18], eax
mul edx
seto cl
neg ecx
or ecx, eax
jne 0x45553e
xor edi, edi
jmp 0x45554f
push ecx
push 8
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov ecx, dword [esp + 0x1c]
shl ecx, 2
push ecx
push dword [esp + 0x18]
push edi
call fcn.004d634d
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x84]
mov dword [esp + 0x28], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x45558a
push eax
push 0
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x24]
mov eax, edi
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x45559e
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 0x14]
lea ecx, [ecx + ebx*2]
mov dword [eax + esi*4], edx
inc esi
add edx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], edx
lea eax, [edi - 1]
mov dword [esp + 0x24], ecx
cmp esi, eax
jl 0x4555c2
cmp edi, 0xffffffff
jne 0x4555de
mov edi, dword [esp + 0x44]
jmp 0x4555d4
inc edx
add ecx, 2
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
cmp edx, dword [esp + 0x34]
jle 0x4554b7
inc esi
lea eax, [esp + 0x70]
mov dword [esp + 0x70], esi
push eax
push 1
push 8
mov dword [esp + 0x80], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov edi, dword [ebp + 8]
mov ecx, 0x2008
mov word [edi], cx
xor cl, cl
cmp dword [ebp + 0x14], 0
mov dword [edi + 8], eax
jne 0x45561b
test ebx, ebx
jne 0x4556c3
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
mov esi, eax
test esi, esi
js 0x4556d2
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnlock]
mov esi, eax
test esi, esi
js 0x4556d2
mov eax, dword [edi + 8]
xor esi, esi
xor ecx, ecx
mov byte [esp + 0x13], 1
mov edi, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
test eax, eax
js 0x4556bc
mov edx, dword [esp + 0x14]
sub edx, edi
cmp esi, eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x28]
je 0x45566b
mov eax, dword [edx + edi]
mov dword [esp + 0x1c], eax
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [edi], eax
test eax, eax
je 0x4556b5
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add ecx, ebx
cmp esi, eax
je 0x4556bc
mov edx, dword [esp + 0x34]
inc esi
add edi, 4
cmp esi, eax
jle 0x455662
mov edi, dword [ebp + 8]
xor esi, esi
jmp 0x4556c9
test ebx, ebx
je 0x4555de
xor esi, esi
jmp 0x4555df
mov esi, 0x8007000e
jmp 0x455711
mov cl, byte [esp + 0x13]
mov edi, dword [ebp + 8]
xor esi, esi
test cl, cl
je 0x4556d2
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x4556ed
push eax
push 0
push dword [0x4e05c4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jns 0x455711
mov eax, dword [edi + 8]
test eax, eax
je 0x455711
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [edi + 8], 0
jmp 0x455711
mov esi, 0x800a005b
mov dword [esp + 0x69], esi
cmp word [esp + 0x48], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x455726
lea eax, [esp + 0x48]
push eax
call edi
cmp word [esp + 0x58], 0
je 0x455735
lea eax, [esp + 0x58]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14