Function at 0x40d906
Capabilities:
Create thread

Disassembly:
mov eax, 0x45dde5
call fcn.004485c4
sub esp, 0xd8
push ebx
push esi
push edi
mov edi, str.App::InstallMainAppAndOffers_2057
mov dword [ebp - 0x10], esp
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x28], esi
call fcn.004468a0
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
movzx eax, byte [ebx + 0x1c4]
push eax
push edi
push str.___s__mobile_d_
push esi
call fcn.00437bbc
add esp, 0x10
push ebx
mov byte [ebp - 4], 1
call fcn.0040dd59
mov ecx, ebx
call fcn.0040c5db
mov ecx, ebx
call fcn.0040c1e3
xor edi, edi
inc edi
mov eax, ebx
call fcn.0040f41e
push str.__prepare_jobs
push esi
call fcn.00437bbc
cmp dword [ebx + 0x250], esi
pop ecx
pop ecx
je 0x40db82
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebx + 0x250]
call fcn.0043abb0
cmp dword [ebp - 0x2c], eax
jae 0x40db82
push dword [ebp - 0x2c]
mov ecx, dword [ebx + 0x250]
call fcn.0043cd70
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x24], edi
call fcn.0043ac10
test al, al
jne 0x40db7a
push esi
lea ecx, [ebp - 0x8c]
call fcn.00439a40
lea eax, [ebp - 0x8c]
push eax
push 0x4680a0
lea eax, [ebp - 0xbc]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0043ca60
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0043b790
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.0043bff0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.0043bff0
push str.preDownload
lea ecx, [ebp - 0xd8]
call fcn.00418739
push 1
push 1
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebx + 4]
push edi
lea edx, [ebp - 0xac]
mov byte [ebp - 4], 4
mov eax, dword [ecx]
push edx
call dword [eax + 4]
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
push 1
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.00417a85
push esi
lea ecx, [ebp - 0x44]
call fcn.00439b00
lea eax, [ebp - 0x44]
push eax
mov edi, str.silent
push edi
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x24]
push eax
call fcn.0043ca60
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0043a160
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x1d], al
mov byte [ebp - 4], 5
call fcn.0043bff0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0043bff0
cmp byte [ebp - 0x1d], 0
je 0x40dad0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x294]
lea esi, [ebp - 0x18]
call fcn.00412137
push dword [ebp - 0x1c]
push edi
jmp 0x40db69
cmp byte [ebx + 0x1c4], 0
jne 0x40db7a
push 0x34
call fcn.004449b4
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
mov byte [ebp - 4], 7
je 0x40db16
push 0x465cf2
lea ecx, [ebp - 0x78]
call fcn.00418739
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 8
or dword [ebp - 0x28], 1
push eax
push dword [ebp - 0x18]
call fcn.00411ee0
mov dword [ebp - 0x18], eax
jmp 0x40db19
mov dword [ebp - 0x18], esi
lea edi, [ebx + 0x278]
lea esi, [ebp - 0x1c]
mov dword [ebp - 4], 9
call fcn.00411fb3
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test byte [ebp - 0x28], al
je 0x40db4d
and dword [ebp - 0x28], 0xfffffffe
push 0
push eax
lea ecx, [ebp - 0x78]
call fcn.00417a85
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x284]
lea esi, [ebp - 0x18]
call fcn.00412137
push dword [ebp - 0x1c]
push str.visible
push str.__push__s_offer__d
push 0
call fcn.00437bbc
add esp, 0x10
xor esi, esi
inc dword [ebp - 0x2c]
jmp 0x40d98a
push ebx
call fcn.0040e2ec
push ebx
mov ecx, 0x47f320
call fcn.00418b15
xor edi, edi
lea eax, [ebx + 0x284]
call fcn.00412112
cmp edi, eax
push 0x18
jae 0x40dc63
mov eax, dword [ebx + 0x288]
lea eax, [eax + edi*4]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
call fcn.004449b4
pop ecx
cmp eax, esi
je 0x40dbd5
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
mov dword [ebp - 0x1c], eax
jmp 0x40dbd8
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 4
lea esi, [ebp - 0x18]
call fcn.00412137
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push esi
push dword [ebp - 0x1c]
push 0x40ee5c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
lea ecx, [ebp - 0x44]
call fcn.00439a40
lea eax, [ebp - 0x44]
push eax
push 0x4680a0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0043ca60
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0043b790
push dword [ebp - 0x24]
push eax
push str.visible
push str.__start__s_job__d__tid_d
push esi
call fcn.00437bbc
add esp, 0x14
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
call fcn.0043bff0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0043bff0
inc edi
jmp 0x40db95
call fcn.004449b4
pop ecx
cmp eax, esi
je 0x40dc80
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
or dword [eax + 0x14], 0xffffffff
mov edi, eax
jmp 0x40dc82
xor edi, edi
lea eax, [ebx + 0x294]
lea ecx, [edi + 4]
mov byte [ebp - 4], 1
call fcn.00412035
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push 0x40ee5c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp - 0x18]
push str.silent
push str.__start__s_job__tid_d
push esi
call fcn.00437bbc
add esp, 0x10
cmp byte [ebx + 0x1cd], 0
je 0x40dcf3
lea eax, [ebx + 0x284]
call fcn.00412112
test eax, eax
jne 0x40dcf3
cmp byte [ebx + 0x1c4], al
jne 0x40dce5
push ebx
call fcn.004103cc
jmp 0x40dcf3
mov ecx, ebx
call fcn.00410519
mov byte [ebx + 0x1b4], 0
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x30]
call fcn.0041836d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret