Function at 0x429880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1608
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x510620]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov eax, dword [0x510620]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00420990
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0xc]
add eax, 0x3c
cmp dword [eax + 0x14], 8
jb 0x4298f8
mov eax, dword [eax]
push eax
push str.appid
lea ecx, [esp + 0x20]
call fcn.00424830
mov eax, dword [esi + 0xc]
add eax, 0x20
cmp dword [eax + 0x14], 8
jb 0x429915
mov eax, dword [eax]
push eax
push str.appname
lea ecx, [esp + 0x20]
call fcn.00424830
mov eax, dword [esi + 0x28]
xor edi, edi
sub eax, dword [esi + 0x24]
xor ecx, ecx
sar eax, 2
test eax, eax
je 0x42995c
mov edx, dword [esi + 0x28]
mov ebx, dword [esi + 0x24]
sub edx, ebx
sar edx, 2
mov dword [esp + 0x10], 0x1400000
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 0x38]
test eax, eax
cmove eax, dword [esp + 0x10]
inc ecx
add edi, eax
cmp ecx, edx
jb 0x429948
push edi
push str.filebytes
lea ecx, [esp + 0x20]
call fcn.00424960
mov eax, dword [esi + 0x28]
xor edi, edi
sub eax, dword [esi + 0x24]
xor edx, edx
sar eax, 2
test eax, eax
je 0x429994
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
sub ebx, ecx
sar ebx, 2
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc edx
add edi, dword [eax + 0x3c]
cmp edx, ebx
jb 0x429987
push edi
push str.downbytes
lea ecx, [esp + 0x20]
call fcn.00424960
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x18]
sub eax, dword [esi + 0x24]
sar eax, 2
push eax
push str.totalRes
call fcn.00424960
mov eax, dword [esi + 0x28]
xor edx, edx
sub eax, dword [esi + 0x24]
xor ecx, ecx
sar eax, 2
test eax, eax
je 0x4299ed
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x24]
sub edi, ebx
sar edi, 2
mov eax, dword [ebx + ecx*4]
mov eax, dword [eax + 0x40]
cmp eax, 4
je 0x4299e7
cmp eax, 3
jne 0x4299e8
inc edx
inc ecx
cmp ecx, edi
jb 0x4299d7
push edx
push str.downRes
lea ecx, [esp + 0x20]
call fcn.00424960
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x1dc]
sub ecx, dword [eax + 0x1d8]
sar ecx, 3
inc ecx
push ecx
push str.totalSetupRes
lea ecx, [esp + 0x20]
call fcn.00424960
mov eax, dword [esi + 0x3c]
push eax
push str.setupRes
lea ecx, [esp + 0x20]
call fcn.00424960
push dword [ebp + 8]
lea ecx, [esp + 0x1c]
push str.result
call fcn.00424960
mov eax, dword [esp + 0x14]
test eax, eax
je 0x429a58
push eax
push str.message
lea ecx, [esp + 0x20]
call fcn.00424830
movzx eax, byte [esi + 0x18]
lea ecx, [esp + 0x18]
push eax
push str.upgrade
call fcn.00424a50
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x18]
push 0
push eax
push 4
call fcn.00433090
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.00420040
push dword [esp + 0x18]
call fcn.00494c0b
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00494c10
mov esp, ebp
pop ebp
ret 8