Function at 0x4163e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d97d6
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x79a200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
push str.Patch_Step_1___DownloadPatch_Start
call fcn.0041d700
add esp, 4
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x416ac0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
push dword [ebp + 8]
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push str._08d
push eax
call fcn.00407190
mov eax, dword [ebp - 0x48]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x416468
push dword [eax - 0xc]
lea ecx, [ebp - 0x48]
call fcn.00406e20
mov eax, dword [ebp - 0x48]
push eax
push str.Download_Patch_Version___s_
call fcn.0041d700
add esp, 8
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x416aca
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
movaps xmm0, xmmword [0x7768d0]
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x4ed15902
mov ecx, dword [eax]
mov dword [ebp - 0x54], 0x2ebabd4a
mov dword [ebp - 0x50], 0x1e8b0e43
mov word [ebp - 0x4c], 0xfc0d
mov eax, dword [ecx + 0x124]
lea edi, [ecx + 0x128]
mov byte [ebp - 0x4a], 0xdf
mov dword [ebp - 0x38], ecx
test al, 1
jne 0x416527
or eax, 1
mov dword [ecx + 0x124], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movlpd qword [ebp - 0x44], xmm0
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov byte [edi + 0x1f], 1
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x68]
mov byte [ecx + edi], al
add ecx, 1
adc edx, 0
test edx, edx
jne 0x416516
cmp ecx, 0x1f
jb 0x416500
push 0x6ea620
call fcn.0068dcce
add esp, 4
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0041a3f0
mov ecx, edi
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416548
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00415170
mov byte [ebp - 4], 3
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
mov ecx, dword [esi - 0x10]
cmova edi, dword [ebp - 0x28]
test ecx, ecx
je 0x41657e
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x416596
call fcn.0054592c
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x416ac0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 4
test edi, edi
je 0x4165c1
test edi, 0xffff0000
jne 0x4165c1
movzx eax, di
lea ecx, [ebp - 0x40]
push eax
call fcn.00406a60
jmp 0x4165ca
push edi
lea ecx, [ebp - 0x40]
call fcn.0040bd50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
mov esi, dword [ebp - 0x40]
push dword [esi - 0xc]
push esi
call fcn.0040bc00
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4165f9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x416ac0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 6
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x416ad4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x34]
cmp dword [eax - 4], 1
jle 0x416650
push dword [eax - 0xc]
lea ecx, [ebp - 0x34]
call fcn.00406e20
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x3c]
push str._sPatch_08d.pak
push eax
call fcn.00407190
push esi
lea eax, [ebp - 0x40]
push str.Patch_08d.pak
push eax
call fcn.00407190
mov edi, dword [ebp - 0x3c]
add esp, 0x1c
cmp dword [edi - 4], 1
jle 0x41668c
push dword [edi - 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00406e20
mov edi, dword [ebp - 0x3c]
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov ecx, dword [ebp - 0x38]
mov eax, dword [0x7ae4ec]
cmp eax, dword [ecx + 8]
jle 0x4166d5
push 0x7ae4ec
call fcn.0068d914
add esp, 4
cmp dword [0x7ae4ec], 0xffffffff
jne 0x4166d5
call fcn.0040f780
push 0x6ea4a0
call fcn.0068dbb4
push 0x7ae4ec
call fcn.0068d8c3
add esp, 8
mov eax, dword [0x7ae544]
add eax, 0xfffffff0
push eax
call fcn.004066d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x40]
cmp dword [eax - 4], 1
jle 0x416704
push dword [eax - 0xc]
lea ecx, [ebp - 0x40]
call fcn.00406e20
cmp dword [esi - 4], 1
jle 0x416718
push dword [esi - 0xc]
lea ecx, [ebp - 0x30]
call fcn.00406e20
mov esi, dword [ebp - 0x30]
cmp dword [edi - 4], 1
jle 0x41672c
push dword [edi - 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00406e20
mov edi, dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
push esi
push edi
call fcn.00416af0
lea edx, [esi - 0x10]
mov dword [ebp - 0x30], eax
or esi, 0xffffffff
mov byte [ebp - 4], 7
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41675d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41677c
push str.Download_Failed_
push 0
call fcn.0041d690
add esp, 8
mov dword [ebp - 0x2c], 0
jmp 0x4169e0
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi + 0x30]
cmp dword [eax - 4], 1
jle 0x416793
push dword [eax - 0xc]
lea ecx, [esi + 0x30]
call fcn.00406e20
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4167d6
mov eax, dword [esi + 0x30]
cmp dword [eax - 4], 1
jle 0x4167b5
push dword [eax - 0xc]
lea ecx, [esi + 0x30]
call fcn.00406e20
push dword [esi + 0x30]
push str.Failed__GetFileAttributes__s_
push 0
call fcn.0041d690
add esp, 0xc
mov dword [ebp - 0x2c], 0
or esi, 0xffffffff
jmp 0x4169e0
push str.Download_txt_File
call fcn.0041d700
add esp, 4
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x416ade
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x34]
cmp dword [eax - 4], 1
jle 0x41681a
push dword [eax - 0xc]
lea ecx, [ebp - 0x34]
call fcn.00406e20
mov eax, dword [ebp - 0x34]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x30]
push str._sPatch_08d.txt
push eax
call fcn.00407190
mov ecx, dword [ebp - 0x38]
add esp, 0x10
mov eax, dword [0x7ae4ec]
cmp eax, dword [ecx + 8]
jle 0x416871
push 0x7ae4ec
call fcn.0068d914
add esp, 4
cmp dword [0x7ae4ec], 0xffffffff
jne 0x416871
call fcn.0040f780
push 0x6ea4a0
call fcn.0068dbb4
push 0x7ae4ec
call fcn.0068d8c3
add esp, 8
mov eax, dword [0x7ae544]
add eax, 0xfffffff0
push eax
call fcn.004066d0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0xa
cmp dword [esi - 4], 1
jle 0x4168a0
push dword [esi - 0xc]
lea ecx, [ebp - 0x38]
call fcn.00406e20
mov esi, dword [ebp - 0x38]
push dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
push esi
add eax, 0x34
push str._sPatch_08d.txt
push eax
mov dword [ebp - 0x2c], eax
call fcn.00407190
add esp, 0x10
mov byte [ebp - 4], 9
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4168d7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x30]
cmp dword [esi - 4], 1
jle 0x4168ee
push dword [esi - 0xc]
lea ecx, [ebp - 0x30]
call fcn.00406e20
mov esi, dword [ebp - 0x30]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x41690d
push dword [ecx - 0xc]
mov ecx, eax
call fcn.00406e20
mov eax, dword [ebp - 0x2c]
cmp dword [esi - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
jle 0x416929
push dword [esi - 0xc]
lea ecx, [ebp - 0x30]
call fcn.00406e20
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov edx, eax
mov ecx, esi
call fcn.0041c540
test eax, eax
je 0x41694c
push str.Download_txt_File_Failed_
call fcn.0041d700
add esp, 4
mov dword [ebp - 0x2c], 0
jmp 0x4169c2
push str.Download_txt_File_Success
call fcn.0041d700
mov eax, dword [ebp - 0x2c]
add esp, 4
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x416971
push dword [ecx - 0xc]
mov ecx, eax
call fcn.00406e20
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4169ae
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x416996
push dword [ecx - 0xc]
mov ecx, eax
call fcn.00406e20
mov eax, dword [ebp - 0x2c]
push dword [eax]
push str.Failed__GetFileAttributes__s_
call fcn.0041d700
add esp, 8
mov dword [ebp - 0x2c], 0
jmp 0x4169c2
push str.Patch_Step_1___DownloadPatch_End
call fcn.0041d700
add esp, 4
mov dword [ebp - 0x2c], 1
lea edx, [esi - 0x10]
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4169e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4169fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x416a19
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x416a51
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416a47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416ae8
push ecx
push edx
call fcn.0068d77d
add esp, 8
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x18], 0
add edx, 0xfffffff0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x416a81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x416aa0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0068d76f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
call fcn.006944a3
int3