Function at 0x42f190
Capabilities:
Delete file
Download url
Get file attributes
Read .ini file
Receive data
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a5690
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x48], 0
call fcn.00428b90
test eax, eax
jne 0x42f7fe
mov ecx, dword [esi + 8]
push str.Download_Patch_Info_File
push ecx
call fcn.00427200
push eax
call fcn.00426f60
mov edx, dword [str.update.dat]
add esp, 8
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.00401d30
lea eax, [esp + 0x2c]
push eax
call fcn.004051d0
mov eax, dword [eax]
add esp, 8
push eax
push 0
push str.UpdateFileNumber
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 8]
push edi
push str.Number_of_download_file_:__d
push ecx
call fcn.00427200
push eax
call fcn.00426f60
add esp, 0x10
test edi, edi
jne 0x42f280
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42f81a
call fcn.0045f338
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f29a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x48], 1
call fcn.0045f338
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f2c9
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x48], 2
call fcn.0045f338
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f2f8
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x48], 3
call fcn.0045f338
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f327
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
mov ebp, 1
cmp dword [esp + 0x20], ebp
mov byte [esp + 0x48], 4
jl 0x42f593
jmp 0x42f350
push ebp
lea ecx, [esp + 0x20]
push str.UpdateFile_d
push ecx
call fcn.00401990
mov edx, dword [esp + 0x28]
mov eax, dword [str.update.dat]
add esp, 0xc
push str.NULL
push edx
push str.Update
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.00401d30
lea ecx, [esp + 0x40]
push ecx
call fcn.004051d0
add esp, 8
mov eax, dword [eax]
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x5c], 5
call fcn.004053e0
add esp, 0x14
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 6
call fcn.00402cc0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x48], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f3da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x48], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f3ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
push edi
push ecx
lea edx, [esp + 0x2c]
push 0x4f9c00
push edx
call fcn.00401990
mov ebx, dword [esp + 0x34]
mov eax, dword [esi + 8]
add esp, 0x10
push ebx
push ebp
push str.__d__Download_file_URL_:__s
push eax
call fcn.00427200
push eax
call fcn.00426f60
add esp, 0x10
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x3c], esp
mov dword [esp + 0x3c], eax
lea eax, [edi - 0x10]
mov esi, esp
push eax
call fcn.00402280
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x40]
add esp, 4
push eax
call fcn.004257e0
lea ecx, [esp + 0x44]
add esp, 8
push ecx
call fcn.004051d0
add esp, 8
mov eax, dword [eax]
test eax, eax
mov byte [esp + 0x48], 7
jne 0x42f483
xor ecx, ecx
jmp 0x42f493
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x42f488
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004017c0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x48], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f4c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x28]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00402280
lea ecx, [esp + 0x44]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004051d0
mov esi, dword [eax]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push edi
push ebx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x42f713
xor esi, esi
mov edi, edi
push 0
push 0
push edi
push ebx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x42f713
add esi, 1
cmp esi, 0xa
jl 0x42f540
cmp ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
je 0x42f82d
push str.Download_Patch_Info_File_Faile._Try_Next_Again
push edx
call fcn.00427200
push eax
call fcn.00426f60
add esp, 0xc
mov esi, dword [esp + 0x14]
add ebp, 1
cmp ebp, dword [esp + 0x20]
jle 0x42f350
mov ecx, dword [0x55865c]
push 0
call fcn.0043f4a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x5c]
call eax
test eax, eax
je 0x42f5b9
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0042db40
mov edx, dword [esi + 8]
push str.Success_Download_files
push edx
call fcn.00427200
push eax
call fcn.00426f60
mov eax, dword [str.update.dat]
add esp, 8
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00401d30
lea ecx, [esp + 0x40]
push ecx
call fcn.004051d0
mov esi, dword [eax]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f629
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
push str.Download_Patch_Info_File
push edx
call fcn.00427200
push eax
call fcn.00426f60
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x48], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f665
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x48], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x48], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f6ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x48], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f6d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f6f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
cmp dword [edi - 0xc], 0
jl 0x42f582
push str..cab
push edi
call fcn.00475e58
add esp, 8
test eax, eax
je 0x42f582
sub eax, edi
cmp eax, 0xffffffff
je 0x42f582
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push str.Download_Patch_Info_File_Faile._Cab_Find_
push ecx
call fcn.00427200
push eax
call fcn.00426f60
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x48], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f793
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x48], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f7b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x48], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f7d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x48], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f7fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f826
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42f6fd
push str.Download_Patch_Info_File_Faile._End_Patch
push edx
call fcn.00427200
push eax
call fcn.00426f60
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x48], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42f787