Function at 0x4593fc
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 0x459425
mov ebx, 0x4a3c84
mov dword [esp + 0x10], eax
jmp 0x459440
cmp eax, 1
jne 0x459432
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
jmp 0x459437
mov byte [esp + 0xf], 1
mov ebx, 0x4a3c2e
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 0x459483
mov esi, dword [esi + 8]
jmp 0x4595a2
cmp ax, cx
jne 0x459492
mov eax, dword [esi + 8]
mov esi, dword [eax]
jmp 0x4595a2
mov dword [esp + 0x28], 0
cmp eax, 0xa
jne 0x4594b7
cmp dword [esi + 8], 0x80020004
jne 0x4594b7
mov byte [esp + 0x4c], 1
mov esi, 0x80020005
jmp 0x4597fa
cmp eax, 9
je 0x4594c9
mov ecx, eax
cmp ax, word [esp + 0x14]
jne 0x459549
mov ecx, dword [esi + 8]
test eax, 0x4000
je 0x4594d5
mov ecx, dword [ecx]
test ecx, ecx
je 0x4597f5
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 0x519ca0
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 0x4597de
movzx ecx, word [esp + 0x2c]
lea esi, [esp + 0x2c]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x459539
mov eax, dword [esp + 0x34]
mov esi, dword [eax]
jmp 0x45959d
cmp eax, 8
jne 0x459544
mov esi, dword [esp + 0x34]
jmp 0x45959d
mov edx, 0x400c
cmp cx, 1
jne 0x459569
mov ecx, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x4d], 0x800a005e
xor esi, esi
mov word [ecx], ax
jmp 0x4597fe
cmp cx, dx
jne 0x459576
mov esi, dword [esi + 8]
cmp word [esi], dx
je 0x45956e
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 0x4597de
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 0x4595cf
mov ecx, dword [edi + 8]
jmp 0x4596ef
cmp ax, cx
jne 0x4595de
mov eax, dword [edi + 8]
mov ecx, dword [eax]
jmp 0x4596ef
mov dword [esp + 0x54], 0
cmp eax, 0xa
jne 0x459603
cmp dword [edi + 8], 0x80020004
jne 0x459603
mov byte [esp + 0x78], 1
mov esi, 0x80020005
jmp 0x4597b4
cmp eax, 9
je 0x459614
mov edx, 0x4009
mov ecx, eax
cmp ax, dx
jne 0x45968f
mov ecx, dword [edi + 8]
test eax, 0x4000
je 0x459620
mov ecx, dword [ecx]
test ecx, ecx
je 0x4597af
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 0x519ca0
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 0x459798
movzx ecx, word [esp + 0x58]
lea edi, [esp + 0x58]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x459684
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
jmp 0x4596eb
cmp eax, 8
jne 0x45968f
mov ecx, dword [esp + 0x60]
jmp 0x4596eb
cmp cx, 1
jne 0x4596af
mov ecx, dword [ebp + 8]
mov eax, 1
mov dword [esp + 0x79], 0x800a005e
xor esi, esi
mov word [ecx], ax
jmp 0x4597b8
mov eax, 0x400c
cmp cx, ax
jne 0x4596c4
lea ecx, [ecx]
mov edi, dword [edi + 8]
cmp word [edi], ax
je 0x4596bc
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 0x459798
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 0x459735
push 1
push 0x51dd80
push 1
push 0x51dd80
push 0x30000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
jne 0x45972d
mov esi, 0x80070057
jmp 0x4597b8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
test esi, esi
je 0x459745
mov eax, dword [esi - 4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x459747
xor edi, edi
test ecx, ecx
je 0x459755
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x459757
xor eax, eax
cmp dword [ebp + 0x14], 0
jne 0x459773
cmp eax, 1
jne 0x459769
mov ebx, 0x4a3c02
jmp 0x459773
cmp eax, 2
jne 0x459773
mov ebx, 0x4a3bc4
test ecx, ecx
jne 0x45977c
mov ecx, 0x51e5d4
cmp edi, 1
jl 0x459794
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 0x4597b8
cmp esi, 0x800a005e
jne 0x4597b8
mov ecx, dword [ebp + 8]
mov eax, 1
xor esi, esi
mov word [ecx], ax
jmp 0x4597b8
mov esi, 0x800a005b
mov dword [esp + 0x79], esi
cmp word [esp + 0x58], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x4597cd
lea eax, [esp + 0x58]
push eax
call edi
cmp word [esp + 0x68], 0
je 0x459804
lea eax, [esp + 0x68]
push eax
call edi
jmp 0x459804
cmp esi, 0x800a005e
jne 0x4597fe
mov ecx, dword [ebp + 8]
mov eax, 1
xor esi, esi
mov word [ecx], ax
jmp 0x4597fe
mov esi, 0x800a005b
mov dword [esp + 0x4d], esi
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x2c], 0
je 0x459813
lea eax, [esp + 0x2c]
push eax
call edi
cmp word [esp + 0x3c], 0
je 0x459822
lea eax, [esp + 0x3c]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10