Function at 0x47ae79
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 0x47aea2
mov ebx, 0x47b464
mov dword [esp + 0x10], eax
jmp 0x47aebd
cmp eax, 1
jne 0x47aeaf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
jmp 0x47aeb4
mov byte [esp + 0xf], 1
mov ebx, 0x47b40e
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 0x47af00
mov esi, dword [esi + 8]
jmp 0x47b01f
cmp ax, cx
jne 0x47af0f
mov eax, dword [esi + 8]
mov esi, dword [eax]
jmp 0x47b01f
mov dword [esp + 0x28], 0
cmp eax, 0xa
jne 0x47af34
cmp dword [esi + 8], 0x80020004
jne 0x47af34
mov byte [esp + 0x4c], 1
mov esi, 0x80020005
jmp 0x47b277
cmp eax, 9
je 0x47af46
mov ecx, eax
cmp ax, word [esp + 0x14]
jne 0x47afc6
mov ecx, dword [esi + 8]
test eax, 0x4000
je 0x47af52
mov ecx, dword [ecx]
test ecx, ecx
je 0x47b272
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 0x4cd4e0
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 0x47b25b
movzx ecx, word [esp + 0x2c]
lea esi, [esp + 0x2c]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x47afb6
mov eax, dword [esp + 0x34]
mov esi, dword [eax]
jmp 0x47b01a
cmp eax, 8
jne 0x47afc1
mov esi, dword [esp + 0x34]
jmp 0x47b01a
mov edx, 0x400c
cmp cx, 1
jne 0x47afe6
mov ecx, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x4d], 0x800a005e
xor esi, esi
mov word [ecx], ax
jmp 0x47b27b
cmp cx, dx
jne 0x47aff3
mov esi, dword [esi + 8]
cmp word [esi], dx
je 0x47afeb
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 0x47b25b
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 0x47b04c
mov ecx, dword [edi + 8]
jmp 0x47b16c
cmp ax, cx
jne 0x47b05b
mov eax, dword [edi + 8]
mov ecx, dword [eax]
jmp 0x47b16c
mov dword [esp + 0x54], 0
cmp eax, 0xa
jne 0x47b080
cmp dword [edi + 8], 0x80020004
jne 0x47b080
mov byte [esp + 0x78], 1
mov esi, 0x80020005
jmp 0x47b231
cmp eax, 9
je 0x47b091
mov edx, 0x4009
mov ecx, eax
cmp ax, dx
jne 0x47b10c
mov ecx, dword [edi + 8]
test eax, 0x4000
je 0x47b09d
mov ecx, dword [ecx]
test ecx, ecx
je 0x47b22c
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 0x4cd4e0
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 0x47b215
movzx ecx, word [esp + 0x58]
lea edi, [esp + 0x58]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x47b101
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
jmp 0x47b168
cmp eax, 8
jne 0x47b10c
mov ecx, dword [esp + 0x60]
jmp 0x47b168
cmp cx, 1
jne 0x47b12c
mov ecx, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x79], 0x800a005e
xor esi, esi
mov word [ecx], ax
jmp 0x47b235
mov eax, 0x400c
cmp cx, ax
jne 0x47b141
lea ecx, [ecx]
mov edi, dword [edi + 8]
cmp word [edi], ax
je 0x47b139
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 0x47b215
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 0x47b1b2
push 1
push 0x4d1868
push 1
push 0x4d1868
push 0x30000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
jne 0x47b1aa
mov esi, 0x80070057
jmp 0x47b235
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
test esi, esi
je 0x47b1c2
mov eax, dword [esi - 4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x47b1c4
xor edi, edi
test ecx, ecx
je 0x47b1d2
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x47b1d4
xor eax, eax
cmp dword [ebp + 0x14], 0
jne 0x47b1f0
cmp eax, 1
jne 0x47b1e6
mov ebx, 0x47b3e2
jmp 0x47b1f0
cmp eax, 2
jne 0x47b1f0
mov ebx, 0x47b3a4
test ecx, ecx
jne 0x47b1f9
mov ecx, 0x4d2168
cmp edi, 1
jl 0x47b211
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 0x47b235
cmp esi, 0x800a005e
jne 0x47b235
mov ecx, dword [ebp + 8]
mov eax, 1
xor esi, esi
mov word [ecx], ax
jmp 0x47b235
mov esi, 0x800a005b
mov dword [esp + 0x79], esi
cmp word [esp + 0x58], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x47b24a
lea eax, [esp + 0x58]
push eax
call edi
cmp word [esp + 0x68], 0
je 0x47b281
lea eax, [esp + 0x68]
push eax
call edi
jmp 0x47b281
cmp esi, 0x800a005e
jne 0x47b27b
mov ecx, dword [ebp + 8]
mov eax, 1
xor esi, esi
mov word [ecx], ax
jmp 0x47b27b
mov esi, 0x800a005b
mov dword [esp + 0x4d], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x2c], 0
je 0x47b290
lea eax, [esp + 0x2c]
push eax
call edi
cmp word [esp + 0x3c], 0
je 0x47b29f
lea eax, [esp + 0x3c]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10