Function at 0x415470
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4be71c
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x16c]
mov esi, dword [esp + 0x170]
mov ebp, dword [esp + 0x174]
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov ebx, edx
call fcn.004142e0
mov ecx, dword [0x4f9f84]
mov byte [esp + 0x23], al
mov dword [esp + 0x24], ecx
mov ecx, ebx
mov dword [esp + 0x164], 0
call fcn.00420e90
lea edx, [esp + 0x28]
push edx
call fcn.00499531
add esp, 4
cmp byte [esp + 0x23], 0
je 0x41550f
cmp byte [esi + 0x20], 0
je 0x41550f
mov cl, 1
jmp 0x415511
xor cl, cl
mov eax, dword [edi + 0x24]
mov edi, dword [eax + 4]
test cl, cl
je 0x415664
test eax, eax
je 0x415637
test edi, edi
je 0x415619
cmp dword [edi + 4], 0
je 0x415619
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 0
je 0x41555c
push 0x4eb2dc
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x80800000
call fcn.004a1a26
lea ecx, [esp + 0x30]
call fcn.00448930
cmp byte [ebp + 0x11c], 0
lea eax, [ebp + 0xc]
jne 0x415574
mov eax, dword [ebp + 8]
add eax, 4
lea edx, [esp + 0x30]
call fcn.00448b50
mov byte [esp + 0x164], 5
movzx eax, byte [esi + 0x22]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push edi
push ecx
lea edx, [esp + 0x3c]
mov ecx, ebx
call fcn.00419d30
add eax, 4
cmp eax, 4
ja case.0x4155aa.2
jmp dword [eax*4 + 0x415758]
push 0
mov ecx, ebp
call fcn.00444b40
movzx eax, byte [esi + 0x22]
test al, al
je case.0x4155aa.2
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esp + 0x1c]
push edx
push edi
push eax
jmp 0x4155eb
push 0
mov ecx, ebp
call fcn.00444b40
movzx eax, byte [esi + 0x22]
test al, al
je case.0x4155aa.2
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edi
push edx
mov ecx, ebp
mov edx, ebx
call fcn.004157b0
push str.download_and_Install_by_sodalib_failed
mov ecx, edi
call fcn.004032e0
lea ecx, [esp + 0x30]
call fcn.004444f0
lea esi, [esp + 0x24]
call fcn.004035c0
xor al, al
jmp 0x41572e
mov ecx, dword [esp + 0x1c]
push str.sodalib_point_null_or_mainfrm_point_null_or_mainfrmhwnd_null
call fcn.004032e0
lea esi, [esp + 0x24]
call fcn.004035c0
xor al, al
jmp 0x41572e
mov ecx, dword [esp + 0x1c]
call fcn.00447720
push str.workthread_ptr_is_null
push 0x4d65ac
mov edx, eax
call fcn.00448ff0
add esp, 8
lea esi, [esp + 0x24]
call fcn.004035c0
xor al, al
jmp 0x41572e
movzx eax, byte [esi + 0x23]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, ebp
mov edx, ebx
call fcn.004157b0
test al, al
jne 0x415723
test edi, edi
je 0x415710
cmp dword [edi + 4], 0
je 0x415710
mov ecx, dword [edi + 0x94]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call ebp
mov ebx, 0x4dc814
lea esi, [esp + 0x18]
call fcn.004035f0
mov eax, esi
mov esi, edi
mov byte [esp + 0x164], 6
call fcn.0040ba10
lea esi, [esp + 0x18]
mov byte [esp + 0x164], 0
call fcn.004035c0
mov esi, edi
call fcn.0040b710
push str.quitevent
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov esi, eax
call fcn.0040c600
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [edi + 4]
push 0
push edx
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
call fcn.00447720
push str.directdownload_and_install_failed
jmp 0x415645
lea esi, [esp + 0x24]
call fcn.004035c0
mov al, 1
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00497c58
add esp, 0x154
ret 0xc