Function at 0x530cc0
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 0x530ce9
mov ebx, 0x530c73
mov dword [esp + 0x10], eax
jmp 0x530d04
cmp eax, 1
jne 0x530cf6
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
jmp 0x530cfb
mov byte [esp + 0xf], 1
mov ebx, 0x530c1d
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 0x530d47
mov esi, dword [esi + 8]
jmp 0x530e66
cmp ax, cx
jne 0x530d56
mov eax, dword [esi + 8]
mov esi, dword [eax]
jmp 0x530e66
mov dword [esp + 0x28], 0
cmp eax, 0xa
jne 0x530d7b
cmp dword [esi + 8], 0x80020004
jne 0x530d7b
mov byte [esp + 0x4c], 1
mov esi, 0x80020005
jmp 0x5310be
cmp eax, 9
je 0x530d8d
mov ecx, eax
cmp ax, word [esp + 0x14]
jne 0x530e0d
mov ecx, dword [esi + 8]
test eax, 0x4000
je 0x530d99
mov ecx, dword [ecx]
test ecx, ecx
je 0x5310b9
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 0x5c0a38
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 0x5310a2
movzx ecx, word [esp + 0x2c]
lea esi, [esp + 0x2c]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x530dfd
mov eax, dword [esp + 0x34]
mov esi, dword [eax]
jmp 0x530e61
cmp eax, 8
jne 0x530e08
mov esi, dword [esp + 0x34]
jmp 0x530e61
mov edx, 0x400c
cmp cx, 1
jne 0x530e2d
mov ecx, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x4d], 0x800a005e
xor esi, esi
mov word [ecx], ax
jmp 0x5310c2
cmp cx, dx
jne 0x530e3a
mov esi, dword [esi + 8]
cmp word [esi], dx
je 0x530e32
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 0x5310a2
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 0x530e93
mov ecx, dword [edi + 8]
jmp 0x530fb3
cmp ax, cx
jne 0x530ea2
mov eax, dword [edi + 8]
mov ecx, dword [eax]
jmp 0x530fb3
mov dword [esp + 0x54], 0
cmp eax, 0xa
jne 0x530ec7
cmp dword [edi + 8], 0x80020004
jne 0x530ec7
mov byte [esp + 0x78], 1
mov esi, 0x80020005
jmp 0x531078
cmp eax, 9
je 0x530ed8
mov edx, 0x4009
mov ecx, eax
cmp ax, dx
jne 0x530f53
mov ecx, dword [edi + 8]
test eax, 0x4000
je 0x530ee4
mov ecx, dword [ecx]
test ecx, ecx
je 0x531073
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 0x5c0a38
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 0x53105c
movzx ecx, word [esp + 0x58]
lea edi, [esp + 0x58]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x530f48
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
jmp 0x530faf
cmp eax, 8
jne 0x530f53
mov ecx, dword [esp + 0x60]
jmp 0x530faf
cmp cx, 1
jne 0x530f73
mov ecx, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x79], 0x800a005e
xor esi, esi
mov word [ecx], ax
jmp 0x53107c
mov eax, 0x400c
cmp cx, ax
jne 0x530f88
lea ecx, [ecx]
mov edi, dword [edi + 8]
cmp word [edi], ax
je 0x530f80
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 0x53105c
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 0x530ff9
push 1
push 0x5c4158
push 1
push 0x5c4158
push 0x30000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
jne 0x530ff1
mov esi, 0x80070057
jmp 0x53107c
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
test esi, esi
je 0x531009
mov eax, dword [esi - 4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x53100b
xor edi, edi
test ecx, ecx
je 0x531019
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x53101b
xor eax, eax
cmp dword [ebp + 0x14], 0
jne 0x531037
cmp eax, 1
jne 0x53102d
mov ebx, 0x530bf1
jmp 0x531037
cmp eax, 2
jne 0x531037
mov ebx, 0x530bb3
test ecx, ecx
jne 0x531040
mov ecx, 0x5c4be4
cmp edi, 1
jl 0x531058
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 0x53107c
cmp esi, 0x800a005e
jne 0x53107c
mov ecx, dword [ebp + 8]
mov eax, 1
xor esi, esi
mov word [ecx], ax
jmp 0x53107c
mov esi, 0x800a005b
mov dword [esp + 0x79], esi
cmp word [esp + 0x58], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x531091
lea eax, [esp + 0x58]
push eax
call edi
cmp word [esp + 0x68], 0
je 0x5310c8
lea eax, [esp + 0x68]
push eax
call edi
jmp 0x5310c8
cmp esi, 0x800a005e
jne 0x5310c2
mov ecx, dword [ebp + 8]
mov eax, 1
xor esi, esi
mov word [ecx], ax
jmp 0x5310c2
mov esi, 0x800a005b
mov dword [esp + 0x4d], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x2c], 0
je 0x5310d7
lea eax, [esp + 0x2c]
push eax
call edi
cmp word [esp + 0x3c], 0
je 0x5310e6
lea eax, [esp + 0x3c]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10