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

Disassembly:
push 0xffffffffffffffff
push 0x425be0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f5ac]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
push str.UpdateDownloadList:______n
mov dword [esp + 0x18], 0
call fcn.0040e850
mov esi, dword [esp + 0x70]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
mov ebp, dword [esi + 8]
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
test ebp, ebp
je 0x40f100
cmp ebp, eax
je 0x40f105
call fcn.00410931
cmp ebx, edi
je 0x40f39f
test ebp, ebp
jne 0x40f158
call fcn.00410931
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x40f122
call fcn.00410931
mov ebx, dword [ebx + 8]
push esi
push ebx
mov dword [esp + 0x20], ebx
call fcn.0040d350
add esp, 8
test eax, eax
je 0x40f29c
push esi
push ebx
call fcn.0040d290
add esp, 8
test eax, eax
je 0x40f20e
cmp dword [ebx + 0x18], 0x10
jb 0x40f15d
mov edi, dword [ebx + 4]
jmp 0x40f160
mov eax, dword [ebp]
jmp 0x40f118
lea edi, [ebx + 4]
mov eax, edi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea ebp, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f180
sub eax, ebp
push eax
push edi
lea ecx, [esp + 0x48]
call fcn.004015a0
mov edi, dword [esi + 0x8c]
mov ecx, dword [edi + 4]
add esi, 0x78
lea eax, [esp + 0x40]
push eax
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x70], 0
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov edi, 0x10
mov dword [eax], ebp
mov dword [esp + 0x64], 0xffffffff
cmp dword [esp + 0x58], edi
jb 0x40f1e9
mov edx, dword [esp + 0x44]
push edx
call fcn.00410663
add esp, 4
cmp dword [ebx + 0x18], edi
jb 0x40f1f3
mov eax, dword [ebx + 4]
jmp 0x40f1f6
lea eax, [ebx + 4]
push eax
push str.UpdateDownloadList:_Already_Installed_Patch__s_n
call fcn.0040e850
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x24]
add esp, 8
jmp 0x40f213
mov edi, 0x10
push esi
push ebx
call fcn.0040e8e0
add esp, 8
test eax, eax
je 0x40f277
mov edi, dword [esi + 0x38]
mov ecx, dword [edi + 4]
add esi, 0x24
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0040d1d0
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403c80
mov dword [edi + 4], ebp
mov edx, dword [ebp + 4]
mov dword [edx], ebp
cmp dword [ebx + 0x18], 0x10
jb 0x40f264
mov ebx, dword [ebx + 4]
push ebx
push str.UpdateDownloadList:_New_Compatible_Patch__s_n
call fcn.0040e850
jmp 0x40f369
add ebx, 4
push ebx
push str.UpdateDownloadList:_New_Compatible_Patch__s_n
call fcn.0040e850
jmp 0x40f369
cmp dword [ebx + 0x18], edi
jb 0x40f281
mov ebx, dword [ebx + 4]
jmp 0x40f284
add ebx, 4
push ebx
push str.UpdateDownloadList:_Missing_Prerequisites_for_patch__s_n
call fcn.0040e850
mov dword [esp + 0x1c], 1
jmp 0x40f371
cmp dword [ebx + 0x18], 0x10
jb 0x40f2ae
mov edi, dword [ebx + 4]
lea eax, [ebx + 4]
mov dword [esp + 0x14], eax
jmp 0x40f2b5
lea edi, [ebx + 4]
mov dword [esp + 0x14], edi
mov eax, edi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f2d0
sub eax, ebp
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.004015a0
mov edi, dword [esi + 0x70]
mov ecx, dword [edi + 4]
add esi, 0x5c
lea eax, [esp + 0x24]
push eax
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x70], 1
call fcn.00404b50
push 1
mov ecx, esi
mov ebp, eax
call fcn.00403b40
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov esi, 0x10
mov dword [eax], ebp
mov dword [esp + 0x64], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x40f336
mov edx, dword [esp + 0x28]
push edx
call fcn.00410663
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
cmp dword [ebx + 0x18], esi
jb 0x40f356
mov eax, dword [eax]
push eax
push str.UpdateDownloadList:_Incompatible_Patch__s_n
call fcn.0040e850
mov dword [esp + 0x1c], 1
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x74]
add esp, 8
test ebp, ebp
jne 0x40f39a
call fcn.00410931
xor eax, eax
mov edi, dword [esp + 0x20]
cmp edi, dword [eax + 0x14]
jne 0x40f38d
call fcn.00410931
mov ecx, dword [edi]
mov dword [esp + 0x20], ecx
mov ebx, ecx
jmp 0x40f0f2
mov eax, dword [ebp]
jmp 0x40f37f
push 0x427810
call fcn.0040e850
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret