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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x806c
call fcn.005423cb
cmp dword [ebp + 0x14], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
jl 0x4c23d5
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], 0
test eax, eax
je 0x4c23e3
cmp eax, 1
jne 0x4c23ab
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x30001
jmp 0x4c23eb
push 1
push 0x5c4158
push 1
push 0x5c4158
push 0x30000
push eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0x30001
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
jne 0x4c23eb
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4c23fe
mov eax, dword [ebx - 4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x4c2400
xor edi, edi
xor eax, eax
mov dword [esp + 0x28], edi
mov word [esp + 0x44], ax
mov word [esp + 0x54], ax
movzx eax, word [esi]
mov byte [esp + 0x64], 0
cmp eax, 8
jne 0x4c2431
mov ecx, dword [esi + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x65], 0
jmp 0x4c25c5
mov ecx, 0x4008
cmp ax, cx
jne 0x4c2451
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x65], 0
jmp 0x4c25c5
xor ecx, ecx
mov dword [esp + 0x40], ecx
cmp eax, 0xa
jne 0x4c24a6
cmp dword [esi + 8], 0x80020004
jne 0x4c24a6
mov byte [esp + 0x64], 1
mov dword [esp + 0x65], 0x80020005
mov ecx, 0x5c4160
mov esi, 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], esi
test edi, edi
je 0x4c25f9
test ebx, ebx
jne 0x4c262d
test esi, esi
jne 0x4c262d
mov esi, 0x800a000e
jmp 0x4c28c0
cmp eax, 9
je 0x4c24c0
mov dword [esp + 0x18], 0x4009
mov edx, eax
cmp ax, word [esp + 0x18]
jne 0x4c2555
mov ecx, dword [esi + 8]
test eax, 0x4000
je 0x4c24cc
mov ecx, dword [ecx]
test ecx, ecx
je 0x4c28b7
push 0
push 0
lea edx, [esp + 0x4c]
xor eax, eax
push edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
push edx
push 3
push 0
push 0x5c0a38
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x65], esi
test esi, esi
js 0x4c25ae
movzx ecx, word [esp + 0x44]
lea esi, [esp + 0x44]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x4c253a
mov eax, dword [esp + 0x4c]
xor esi, esi
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x65], esi
jmp 0x4c25b2
mov edx, eax
cmp eax, 8
jne 0x4c2551
mov ecx, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x65], esi
jmp 0x4c25b2
mov ecx, dword [esp + 0x40]
cmp dx, 1
jne 0x4c2566
mov esi, 0x800a005e
mov dword [esp + 0x65], esi
jmp 0x4c25b2
mov eax, 0x400c
cmp dx, ax
jne 0x4c257f
lea esp, [esp]
mov esi, dword [esi + 8]
cmp word [esi], ax
je 0x4c2577
push 8
push 2
push 0x400
push esi
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x65], esi
test esi, esi
js 0x4c25ae
mov ecx, dword [esp + 0x5c]
xor esi, esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x65], esi
jmp 0x4c25b2
mov ecx, dword [esp + 0x40]
cmp byte [esp + 0x64], 0
jne 0x4c2472
test esi, esi
js 0x4c28c0
test ecx, ecx
jne 0x4c25db
test ebx, ebx
jne 0x4c25d7
mov esi, 0x800a000e
jmp 0x4c28c0
xor esi, esi
jmp 0x4c25e5
mov eax, dword [ecx - 4]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [esp + 0x2c], esi
test edi, edi
jne 0x4c248c
test esi, esi
je 0x4c248c
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 1
push 8
mov dword [esp + 0x40], 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 0x4c28c0
mov edx, dword [ebp + 0x14]
mov eax, 0x2000
mov dword [esp + 0x24], eax
xor edi, edi
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x14], eax
xor ebx, ebx
mov eax, dword [esp + 0x28]
sub eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], eax
test edx, edx
je 0x4c2854
cmp edx, 1
je 0x4c2790
test esi, esi
jle 0x4c2790
test eax, eax
js 0x4c2790
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0xc]
lea edx, [eax + edi*2]
jne 0x4c26ae
cmp esi, 1
jne 0x4c2691
mov ax, word [edx]
cmp ax, word [ecx]
jmp 0x4c26c7
cmp esi, 2
jne 0x4c269c
mov eax, dword [edx]
cmp eax, dword [ecx]
jmp 0x4c26c7
lea eax, [esi + esi]
push eax
push ecx
push edx
call fcn.005606cd
add esp, 0xc
test eax, eax
jmp 0x4c26c3
push esi
push ecx
push esi
push edx
push dword [esp + 0x2c]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
mov ecx, dword [esp + 0x40]
sete al
test al, al
je 0x4c277b
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jl 0x4c2758
lea eax, [ecx + 0x20000]
mov edx, 4
xor ecx, ecx
mov dword [esp + 0x18], eax
mul edx
seto cl
neg ecx
or ecx, eax
jne 0x4c26fa
xor edi, edi
jmp 0x4c270c
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
push dword [esp + 0x18]
push edi
call fcn.0055fcbe
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x84]
mov dword [esp + 0x30], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x4c274c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x14], edx
jmp 0x4c275c
mov edx, dword [esp + 0x14]
mov dword [edx + ebx*4], edi
inc ebx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x18], ebx
lea eax, [edx - 1]
cmp ebx, eax
jl 0x4c2773
cmp edx, 0xffffffff
jne 0x4c2790
mov ecx, dword [esp + 0x40]
mov eax, esi
jmp 0x4c2780
mov eax, 1
add edi, eax
mov dword [esp + 0x6c], edi
cmp edi, dword [esp + 0x30]
jle 0x4c2678
lea eax, [ebx + 1]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
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 0x4c27cf
test esi, esi
jne 0x4c2871
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
mov esi, eax
test esi, esi
js 0x4c2880
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnlock]
mov esi, eax
test esi, esi
js 0x4c2880
mov eax, dword [edi + 8]
xor esi, esi
xor ecx, ecx
mov byte [esp + 0x13], 1
mov edi, dword [eax + 0xc]
test ebx, ebx
js 0x4c286a
mov eax, dword [esp + 0x14]
sub eax, edi
cmp esi, ebx
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x28]
je 0x4c281b
mov ebx, dword [eax + edi]
mov eax, ebx
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 0x4c2863
mov ecx, dword [esp + 0x2c]
add ecx, ebx
mov ebx, dword [esp + 0x18]
cmp esi, ebx
je 0x4c286a
mov eax, dword [esp + 0x30]
inc esi
add edi, 4
cmp esi, ebx
jle 0x4c2812
mov edi, dword [ebp + 8]
xor esi, esi
jmp 0x4c2877
test esi, esi
je 0x4c2790
xor eax, eax
jmp 0x4c2793
mov esi, 0x8007000e
jmp 0x4c28c0
mov cl, byte [esp + 0x13]
mov edi, dword [ebp + 8]
xor esi, esi
test cl, cl
je 0x4c2880
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x4c289c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jns 0x4c28c0
mov eax, dword [edi + 8]
test eax, eax
je 0x4c28c0
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [edi + 8], 0
jmp 0x4c28c0
mov esi, 0x800a005b
mov dword [esp + 0x65], esi
cmp word [esp + 0x44], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x4c28d5
lea eax, [esp + 0x44]
push eax
call edi
cmp word [esp + 0x54], 0
je 0x4c28e4
lea eax, [esp + 0x54]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14