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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [ebp + 0x14]
mov byte [esp + 3], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jne 0x45a98f
mov ebx, 0x479c91
mov dword [esp + 0x10], eax
jmp 0x45a9aa
cmp eax, 1
jne 0x45a99c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
jmp 0x45a9a1
mov byte [esp + 0xf], 1
mov ebx, 0x479c3b
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, 3
mov edx, 0x400c
mov byte [esp + 0x4c], 0
mov dword [esp + 0x14], 0x4009
mov word [eax], cx
mov dword [eax + 8], 0
lea ecx, [edx - 4]
xor eax, eax
mov word [esp + 0x2c], ax
mov word [esp + 0x3c], ax
movzx eax, word [esi]
cmp eax, 8
jne 0x45a9ed
mov esi, dword [esi + 8]
jmp 0x45ab0c
cmp ax, cx
jne 0x45a9fc
mov eax, dword [esi + 8]
mov esi, dword [eax]
jmp 0x45ab0c
mov dword [esp + 0x28], 0
cmp eax, 0xa
jne 0x45aa21
cmp dword [esi + 8], 0x80020004
jne 0x45aa21
mov byte [esp + 0x4c], 1
mov esi, 0x80020005
jmp 0x45ad64
cmp eax, 9
je 0x45aa33
mov ecx, eax
cmp ax, word [esp + 0x14]
jne 0x45aab3
mov ecx, dword [esi + 8]
test eax, 0x4000
je 0x45aa3f
mov ecx, dword [ecx]
test ecx, ecx
je 0x45ad5f
push 0
push 0
lea edx, [esp + 0x34]
xor eax, eax
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], eax
push edx
push 3
push 0
push 0x556a40
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x4d], esi
test esi, esi
js 0x45ad48
movzx ecx, word [esp + 0x2c]
lea esi, [esp + 0x2c]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x45aaa3
mov eax, dword [esp + 0x34]
mov esi, dword [eax]
jmp 0x45ab07
cmp eax, 8
jne 0x45aaae
mov esi, dword [esp + 0x34]
jmp 0x45ab07
mov edx, 0x400c
cmp cx, 1
jne 0x45aad3
mov ecx, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x4d], 0x800a005e
xor esi, esi
mov word [ecx], ax
jmp 0x45ad68
cmp cx, dx
jne 0x45aae0
mov esi, dword [esi + 8]
cmp word [esi], dx
je 0x45aad8
push 8
push 2
push 0x400
push esi
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x4d], esi
test esi, esi
js 0x45ad48
mov esi, dword [esp + 0x44]
mov ecx, 0x4008
xor eax, eax
mov dword [esp + 0x28], esi
mov word [esp + 0x58], ax
mov word [esp + 0x68], ax
movzx eax, word [edi]
mov dword [esp + 0x4d], 0
mov byte [esp + 0x78], 0
cmp eax, 8
jne 0x45ab39
mov ecx, dword [edi + 8]
jmp 0x45ac59
cmp ax, cx
jne 0x45ab48
mov eax, dword [edi + 8]
mov ecx, dword [eax]
jmp 0x45ac59
mov dword [esp + 0x54], 0
cmp eax, 0xa
jne 0x45ab6d
cmp dword [edi + 8], 0x80020004
jne 0x45ab6d
mov byte [esp + 0x78], 1
mov esi, 0x80020005
jmp 0x45ad1e
cmp eax, 9
je 0x45ab7e
mov edx, 0x4009
mov ecx, eax
cmp ax, dx
jne 0x45abf9
mov ecx, dword [edi + 8]
test eax, 0x4000
je 0x45ab8a
mov ecx, dword [ecx]
test ecx, ecx
je 0x45ad19
push 0
push 0
lea edx, [esp + 0x60]
xor eax, eax
push edx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], eax
push edx
push 3
push 0
push 0x556a40
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x79], esi
test esi, esi
js 0x45ad02
movzx ecx, word [esp + 0x58]
lea edi, [esp + 0x58]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x45abee
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
jmp 0x45ac55
cmp eax, 8
jne 0x45abf9
mov ecx, dword [esp + 0x60]
jmp 0x45ac55
cmp cx, 1
jne 0x45ac19
mov ecx, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x79], 0x800a005e
xor esi, esi
mov word [ecx], ax
jmp 0x45ad22
mov eax, 0x400c
cmp cx, ax
jne 0x45ac2e
lea ecx, [ecx]
mov edi, dword [edi + 8]
cmp word [edi], ax
je 0x45ac26
push 8
push 2
push 0x400
push edi
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x79], esi
test esi, esi
js 0x45ad02
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x28]
cmp byte [esp + 0xf], 0
mov dword [esp + 0x54], ecx
mov dword [esp + 0x79], 0
je 0x45ac9f
push 1
push 0x55afd4
push 1
push 0x55afd4
push 0x30000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
jne 0x45ac97
mov esi, 0x80070057
jmp 0x45ad22
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
test esi, esi
je 0x45acaf
mov eax, dword [esi - 4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x45acb1
xor edi, edi
test ecx, ecx
je 0x45acbf
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x45acc1
xor eax, eax
cmp dword [ebp + 0x14], 0
jne 0x45acdd
cmp eax, 1
jne 0x45acd3
mov ebx, 0x479c0f
jmp 0x45acdd
cmp eax, 2
jne 0x45acdd
mov ebx, 0x479bd1
test ecx, ecx
jne 0x45ace6
mov ecx, 0x55c75e
cmp edi, 1
jl 0x45acfe
push dword [esp + 0x10]
mov edx, edi
push eax
push ecx
mov ecx, esi
call ebx
mov ecx, dword [ebp + 8]
inc eax
mov dword [ecx + 8], eax
xor esi, esi
jmp 0x45ad22
cmp esi, 0x800a005e
jne 0x45ad22
mov ecx, dword [ebp + 8]
mov eax, 1
xor esi, esi
mov word [ecx], ax
jmp 0x45ad22
mov esi, 0x800a005b
mov dword [esp + 0x79], esi
cmp word [esp + 0x58], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x45ad37
lea eax, [esp + 0x58]
push eax
call edi
cmp word [esp + 0x68], 0
je 0x45ad6e
lea eax, [esp + 0x68]
push eax
call edi
jmp 0x45ad6e
cmp esi, 0x800a005e
jne 0x45ad68
mov ecx, dword [ebp + 8]
mov eax, 1
xor esi, esi
mov word [ecx], ax
jmp 0x45ad68
mov esi, 0x800a005b
mov dword [esp + 0x4d], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x2c], 0
je 0x45ad7d
lea eax, [esp + 0x2c]
push eax
call edi
cmp word [esp + 0x3c], 0
je 0x45ad8c
lea eax, [esp + 0x3c]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10