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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x806c
call fcn.00471d17
cmp dword [ebp + 0x14], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
jl 0x42563f
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x30], 0
test eax, eax
je 0x42564d
cmp eax, 1
jne 0x425615
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x30001
jmp 0x425655
push 1
push 0x4d1868
push 1
push 0x4d1868
push 0x30000
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 0x30001
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
jne 0x425655
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x425668
mov eax, dword [ecx - 4]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
jmp 0x42566a
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x3c], ebx
mov word [esp + 0x48], ax
mov word [esp + 0x58], ax
movzx eax, word [esi]
mov byte [esp + 0x68], 0
cmp eax, 8
jne 0x42569b
mov edi, dword [esi + 8]
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], 0
jmp 0x4257f1
mov edx, 0x4008
cmp ax, dx
jne 0x4256bb
mov eax, dword [esi + 8]
mov edi, dword [eax]
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], 0
jmp 0x4257f1
xor edi, edi
mov dword [esp + 0x44], edi
cmp eax, 0xa
jne 0x4256e1
cmp dword [esi + 8], 0x80020004
jne 0x4256e1
mov byte [esp + 0x68], 1
mov dword [esp + 0x69], 0x80020005
jmp 0x425854
cmp eax, 9
je 0x4256f6
mov edx, 0x4009
mov ecx, eax
cmp ax, dx
jne 0x425789
mov ecx, dword [esi + 8]
test eax, 0x4000
je 0x425702
mov ecx, dword [ecx]
test ecx, ecx
je 0x425b0a
push 0
push 0
lea edx, [esp + 0x50]
xor eax, eax
push edx
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
push edx
push 3
push 0
push 0x4cd4e0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
mov esi, eax
mov dword [esp + 0x69], esi
test esi, esi
js 0x4257db
movzx ecx, word [esp + 0x48]
lea esi, [esp + 0x48]
mov edx, 0x4008
mov eax, ecx
cmp cx, dx
jne 0x425770
mov eax, dword [esp + 0x50]
xor esi, esi
mov edi, dword [eax]
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], esi
jmp 0x4257df
cmp eax, 8
jne 0x425785
mov edi, dword [esp + 0x50]
xor esi, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], esi
jmp 0x4257df
mov edi, dword [esp + 0x44]
cmp cx, 1
jne 0x42579a
mov esi, 0x800a005e
mov dword [esp + 0x69], esi
jmp 0x4257df
mov eax, 0x400c
cmp cx, ax
jne 0x4257ac
mov esi, dword [esi + 8]
cmp word [esi], ax
je 0x4257a4
push 8
push 2
push 0x400
push esi
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
mov esi, eax
mov dword [esp + 0x69], esi
test esi, esi
js 0x4257db
mov edi, dword [esp + 0x60]
xor esi, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x69], esi
jmp 0x4257df
mov edi, dword [esp + 0x44]
cmp byte [esp + 0x68], 0
jne 0x425851
test esi, esi
js 0x425b13
mov ecx, dword [ebp + 0xc]
test edi, edi
jne 0x425807
test ecx, ecx
jne 0x425803
mov esi, 0x800a000e
jmp 0x425b13
xor esi, esi
jmp 0x425811
mov eax, dword [edi - 4]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [esp + 0x40], esi
test ebx, ebx
jne 0x42586a
test esi, esi
je 0x42586a
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 1
push 8
mov dword [esp + 0x2c], 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 0x425b13
mov ecx, dword [ebp + 0xc]
mov edi, 0x4d122c
mov esi, 1
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
test ebx, ebx
je 0x42581d
test ecx, ecx
jne 0x42587c
test esi, esi
jne 0x42587c
mov esi, 0x800a000e
jmp 0x425b13
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x78]
sub eax, esi
mov dword [esp + 0x14], edx
mov ecx, 0x2000
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov ebx, ecx
mov dword [esp + 0x38], ecx
test eax, eax
je 0x425aa8
cmp eax, 1
je 0x4259e4
test esi, esi
jle 0x4259e4
cmp dword [esp + 0x18], ecx
jl 0x4259e4
lea ebx, [ebx]
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0xc]
lea ecx, [eax + ecx*2]
jne 0x425907
cmp esi, 1
jne 0x4258ea
mov ax, word [ecx]
cmp ax, word [edi]
jmp 0x425924
cmp esi, 2
jne 0x4258f5
mov eax, dword [ecx]
cmp eax, dword [edi]
jmp 0x425924
lea eax, [esi + esi]
push eax
push edi
push ecx
call fcn.00487bec
add esp, 0xc
test eax, eax
jmp 0x425920
push esi
push edi
push esi
push ecx
push dword [esp + 0x3c]
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov edi, dword [esp + 0x44]
cmp eax, 2
mov edx, dword [esp + 0x14]
sete al
test al, al
je 0x4259cb
mov eax, dword [esp + 0x34]
cmp ebx, eax
jl 0x4259a8
add eax, 0x20000
xor ecx, ecx
mov edx, 4
mov dword [esp + 0x1c], eax
mul edx
seto cl
neg ecx
or ecx, eax
jne 0x425956
xor edi, edi
jmp 0x425967
push ecx
push 8
push dword [0x4a01c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov ecx, dword [esp + 0x34]
shl ecx, 2
push ecx
push dword [esp + 0x18]
push edi
call fcn.0049865d
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x84]
mov dword [esp + 0x40], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ecx
je 0x4259a2
push eax
push 0
push dword [0x4a01c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, edi
mov dword [esp + 0x14], edx
mov edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x38]
mov dword [edx + ebx*4], ecx
inc ebx
mov dword [esp + 0x1c], ebx
lea eax, [edi - 1]
cmp ebx, eax
jl 0x4259c3
cmp edi, 0xffffffff
jne 0x4259e4
mov edi, dword [esp + 0x44]
mov eax, esi
jmp 0x4259d4
mov ecx, dword [esp + 0x38]
mov eax, 1
add ecx, eax
mov dword [esp + 0x38], ecx
cmp ecx, dword [esp + 0x18]
jle 0x4258d1
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 0x425a23
test esi, esi
jne 0x425ac5
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroyDescriptor]
mov esi, eax
test esi, esi
js 0x425ad4
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnlock]
mov esi, eax
test esi, esi
js 0x425ad4
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 0x425abe
mov eax, dword [esp + 0x14]
sub eax, edi
cmp esi, ebx
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x3c]
je 0x425a6f
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 0x425ab7
mov ecx, dword [esp + 0x40]
add ecx, ebx
mov ebx, dword [esp + 0x1c]
cmp esi, ebx
je 0x425abe
mov eax, dword [esp + 0x18]
inc esi
add edi, 4
cmp esi, ebx
jle 0x425a66
mov edi, dword [ebp + 8]
xor esi, esi
jmp 0x425acb
test esi, esi
je 0x4259e4
xor eax, eax
jmp 0x4259e7
mov esi, 0x8007000e
jmp 0x425b13
mov cl, byte [esp + 0x13]
mov edi, dword [ebp + 8]
xor esi, esi
test cl, cl
je 0x425ad4
push dword [edi + 8]
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x425aef
push eax
push 0
push dword [0x4a01c8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jns 0x425b13
mov eax, dword [edi + 8]
test eax, eax
je 0x425b13
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov dword [edi + 8], 0
jmp 0x425b13
mov esi, 0x800a005b
mov dword [esp + 0x69], esi
cmp word [esp + 0x48], 0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
je 0x425b28
lea eax, [esp + 0x48]
push eax
call edi
cmp word [esp + 0x58], 0
je 0x425b37
lea eax, [esp + 0x58]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14