Function at 0x422db0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x513431
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5634e0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x56db80]
inc eax
mov dword [0x56db80], eax
cmp eax, 8
jge 0x422dfd
mov eax, dword [edi]
cmp dword [eax + 0x2e8], 0
je 0x42307c
mov eax, dword [edi]
mov byte [eax + 0x10c], 1
mov ecx, dword [eax + 0xe8]
test ecx, ecx
je 0x422e15
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x9c
mov eax, dword [esi + 4]
test eax, eax
je 0x422e51
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422e45
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call ebx
mov dword [esi + 4], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x422e61
mov eax, dword [ecx]
call dword [eax]
mov dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x422e72
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [edi]
cmp dword [eax + 0x2e8], 0
jne 0x423053
mov eax, dword [0x56db58]
test eax, eax
jne 0x422ebc
push 0x38
call fcn.004d5562
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x68], 0
test eax, eax
je 0x422ead
mov ecx, eax
call fcn.00410ed0
jmp 0x422eaf
xor eax, eax
mov dword [esp + 0x68], 0xffffffff
mov dword [0x56db58], eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.004111e0
mov esi, dword [edi]
mov ebx, eax
add esi, 0x2d8
cmp esi, ebx
je 0x422f01
cmp dword [esi + 0x14], 8
jb 0x422ee6
push dword [esi]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00407030
cmp dword [esp + 0x58], 8
jb 0x422f14
push dword [esp + 0x44]
call fcn.004c8900
add esp, 4
push 0x13
xor eax, eax
mov dword [esp + 0x2c], 7
push str.download_defaultUrl
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00407100
mov dword [esp + 0x68], 1
mov eax, dword [0x56cb9c]
test eax, eax
jne 0x422f8d
push 0x508
call fcn.004d5562
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0x68], 2
test esi, esi
je 0x422f81
push 0x508
push 0
push esi
call fcn.004de630
add esp, 0xc
mov ecx, esi
call fcn.0041e100
jmp 0x422f83
xor eax, eax
mov byte [esp + 0x68], 1
mov dword [0x56cb9c], eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00420690
mov ebx, eax
mov byte [esp + 0x68], 3
mov eax, dword [0x56cb9c]
test eax, eax
jne 0x422fea
push 0x508
call fcn.004d5562
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
mov byte [esp + 0x68], 4
test esi, esi
je 0x422fde
push 0x508
push 0
push esi
call fcn.004de630
add esp, 0xc
mov ecx, esi
call fcn.0041e100
jmp 0x422fe0
xor eax, eax
mov byte [esp + 0x68], 3
mov dword [0x56cb9c], eax
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00426980
cmp dword [esp + 0x40], 8
jb 0x42300a
push dword [esp + 0x2c]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x28], 8
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
jb 0x42303c
push dword [esp + 0x14]
call fcn.004c8900
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov ecx, dword [edi]
call fcn.00422c80
mov esi, dword [edi]
mov eax, dword [esi + 0x368]
test eax, eax
je 0x42307c
mov ecx, dword [0x56cb94]
push eax
call fcn.0040cb80
mov dword [esi + 0x368], 0
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret