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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ac0f7
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x631350]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x631350]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi]
mov esi, edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x60], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0xb0], ebx
cmp dword [edi + 4], ebx
je 0x47518f
lea eax, [esp + 0x24]
push eax
push esi
mov eax, str.TargetedContentInfo_PresentationInfo
mov byte [esp + 0x27], bl
call fcn.00483466
mov byte [esp + 0xb0], 1
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x474e6a
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea edx, [esp + 0x34]
mov byte [esp + 0xb0], 2
call fcn.00484608
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [esp + 0x28], ebx
test eax, eax
je 0x474e59
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0048445f
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x474c9e
mov byte [esp + 0xb0], 2
jmp 0x474e38
mov dword [esp + 0x14], ebx
push 0x5d30fc
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xb8], 4
call fcn.004840ac
lea esi, [esp + 0x14]
mov byte [esp + 0xb0], 5
call fcn.0040e3b2
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x474cea
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x474cea
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x14], ebx
jne 0x474d1d
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x474e38
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x474e38
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x474e38
push dword [esp + 0x14]
call fcn.004837e1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], eax
push 0x5d3094
lea eax, [esp + 0x48]
push eax
call fcn.004840ac
lea esi, [esp + 0x14]
mov byte [esp + 0xb0], 6
call fcn.0040e3b2
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x474d6e
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x474d6e
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x14], ebx
je 0x474cf0
push dword [esp + 0x14]
call fcn.004837e1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
push 0x5d3104
lea eax, [esp + 0x30]
push eax
call fcn.004840ac
lea esi, [esp + 0x14]
mov byte [esp + 0xb0], 7
call fcn.0040e3b2
mov byte [esp + 0xb0], 4
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x474dc9
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x474dc9
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x474cf0
push esi
call fcn.004837e1
lea ecx, [esp + 0x50]
mov ebx, edi
mov dword [esp + 0x58], eax
call fcn.004756f5
mov ecx, dword [esp + 0x18]
call fcn.0048447f
mov byte [esp + 0xb0], 3
dec dword [esi + 4]
cmp dword [esi + 4], 0
mov byte [esp + 0x1f], 1
jg 0x474e11
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x474e32
dec dword [eax + 4]
cmp dword [eax + 4], 0
mov ecx, eax
jg 0x474e32
mov eax, dword [ecx]
push 1
call dword [eax]
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [esp + 0x28]
add dword [esp + 0x20], 0x1c
cmp dword [esp + 0x28], eax
jb 0x474c73
lea esi, [esp + 0x34]
mov byte [esp + 0xb0], 1
call fcn.0040f046
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x50]
mov eax, str.TargetedContentInfo_ClickInfo
call fcn.00483466
lea esi, [esp + 0x24]
mov byte [esp + 0xb0], 8
call fcn.0040e3b2
mov byte [esp + 0xb0], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x474eae
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x474eae
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x47514e
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea edx, [esp + 0x34]
mov byte [esp + 0xb0], 9
call fcn.00484608
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], ax
mov byte [esp + 0xb0], 0xa
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [esp + 0x20], ebx
test eax, eax
je 0x475123
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0048445f
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x474f3b
mov byte [esp + 0xb0], 0xa
jmp 0x475102
mov dword [esp + 0x14], ebx
push 0x5d3158
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0xb8], 0xc
call fcn.004840ac
lea esi, [esp + 0x14]
mov byte [esp + 0xb0], 0xd
call fcn.0040e3b2
mov byte [esp + 0xb0], 0xc
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x474f87
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x474f87
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x14], ebx
jne 0x474fba
mov byte [esp + 0xb0], 0xa
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x475102
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x475102
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x475102
push dword [esp + 0x14]
call fcn.004837e1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
push 0x5d3160
lea eax, [esp + 0x48]
push eax
call fcn.004840ac
lea esi, [esp + 0x14]
mov byte [esp + 0xb0], 0xe
call fcn.0040e3b2
mov byte [esp + 0xb0], 0xc
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x47500b
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x47500b
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x14], ebx
je 0x474f8d
push dword [esp + 0x14]
call fcn.004837e1
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], eax
push 0x5d3178
lea eax, [esp + 0x4c]
push eax
call fcn.004840ac
lea esi, [esp + 0x14]
mov byte [esp + 0xb0], 0xf
call fcn.0040e3b2
mov byte [esp + 0xb0], 0xc
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x475066
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x475066
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x14], ebx
je 0x474f8d
push dword [esp + 0x14]
lea ebx, [esp + 0x88]
call fcn.00483a3f
mov ebx, eax
lea eax, [esp + 0x68]
mov byte [esp + 0xb0], 0x10
call fcn.0040447e
push 1
xor edi, edi
lea esi, [esp + 0x88]
mov byte [esp + 0xb4], 0xc
call fcn.00404589
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x60]
call fcn.004757f7
mov ecx, dword [esp + 0x18]
call fcn.0048447f
mov byte [esp + 0xb0], 0xb
mov ecx, dword [esp + 0x14]
dec dword [ecx + 4]
mov byte [esp + 0x1f], 1
cmp dword [ecx + 4], edi
jg 0x4750e0
mov eax, dword [ecx]
push 1
call dword [eax]
mov byte [esp + 0xb0], 0xa
mov eax, dword [esp + 0x18]
test eax, eax
je 0x475100
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], edi
jg 0x475100
mov eax, dword [ecx]
push 1
call dword [eax]
xor ebx, ebx
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [esp + 0x20]
add dword [esp + 0x28], 0x1c
cmp dword [esp + 0x20], eax
jb 0x474f10
mov ecx, dword [esp + 0x24]
call fcn.0048447f
push 1
xor edi, edi
lea esi, [esp + 0x6c]
call fcn.00404589
lea esi, [esp + 0x34]
mov byte [esp + 0xb0], 1
call fcn.0040f046
mov edi, dword [esp + 0x30]
push 0x5d306c
push dword [esp + 0x50]
call fcn.004834bf
cmp byte [esp + 0x1f], bl
je 0x475170
push str.TargetedContent_statistics_migrated.
push 3
pop ecx
call fcn.0047feaf
pop ecx
mov byte [esp + 0xb0], bl
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x47518f
dec dword [eax + 4]
mov ecx, eax
cmp dword [eax + 4], ebx
jg 0x47518f
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0055c9d4
mov esp, ebp
pop ebp
ret