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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490db9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
lea esi, [edi + 8]
mov dword [edi + 4], vtable.IExtractCallback.0
mov dword [edi], vtable.CUpdateMgr.1.0
mov dword [edi + 4], vtable.CUpdateMgr.0
mov dword [ebp - 0x1c], esi
mov dword [esi + 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov dword [esi], vtable.CECHttpDownloadEventPtr_class_CUpdateMgr_.0
mov dword [ebp - 0x14], 0
call fcn.00411fc0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov dword [eax + 0x24], edi
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
movups xmmword [ecx + 0x24], xmm0
movq qword [ecx + 0x34], xmm0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x24], eax
lea esi, [edi + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [esi + 4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
mov dword [esi], vtable.CECHttpDownloadEventPtr_class_CUpdateMgr_.0
mov dword [ebp - 0x14], 0
call fcn.00411fc0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], ecx
push ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov dword [eax + 0x24], edi
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
movups xmmword [ecx + 0x24], xmm0
movq qword [ecx + 0x34], xmm0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x24], eax
mov dword [edi + 0x18], 0
sub esp, 8
mov byte [ebp - 4], 5
lea ecx, [edi + 0x1c]
push edi
call fcn.00411c30
lea eax, [edi + 0x58]
mov byte [ebp - 4], 6
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40db65
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40db5d
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x40db65
push eax
call fcn.00404990
mov byte [ebp - 4], 7
lea esi, [edi + 0x70]
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004095d0
mov dword [esi], eax
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov byte [ebp - 4], 9
mov dword [edi + 0x84], 0xffffffff
call fcn.00403f70
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40dbc5
push 0x80004005
call fcn.00404990
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x88], eax
mov byte [ebp - 4], 0xa
call fcn.00403f70
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40dbf7
push 0x80004005
call fcn.00404990
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi + 0x8c], eax
xor eax, eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x14], 0xa60
cmp eax, 0x40e460
je 0x40dc36
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x24]
call fcn.00412310
mov dword [eax], 0x40e460
mov dword [eax + 4], 0
xor eax, eax
mov dword [ebp - 0x14], 0xa61
cmp eax, 0x40e460
je 0x40dc5f
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x24]
call fcn.00412310
mov dword [eax], 0x40e460
mov dword [eax + 4], 0
cmp dword [0x4bda54], 0
jne 0x40dc8c
push 0xa8
call fcn.00439955
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0042dd60
mov dword [0x4bda54], eax
test eax, eax
je 0x40dcbf
mov eax, dword [edi + 0xc]
mov dword [eax + 0x38], 0x40f030
mov dword [eax + 0x3c], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 0x28], 0x40eeb0
mov dword [eax + 0x2c], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 0x30], 0x40eee0
mov dword [eax + 0x34], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret