Function at 0x40a9e0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657474
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push esi
push edi
push ecx
lea edi, [ebp - 0x828]
mov ecx, 0x207
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
push 0
call fcn.00619b80
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x3c]
call fcn.00403b90
mov dword [ebp - 4], 0
mov byte [ebp - 0x244], 0
push 0x1ff
push 0
lea eax, [ebp - 0x243]
push eax
call fcn.00614f30
add esp, 0xc
lea ecx, [ebp - 0x788]
call fcn.0041b150
mov byte [ebp - 4], 1
push str..ImageAutopatchAutoPatchURL.bin
lea ecx, [ebp - 0x788]
call fcn.0041b7d0
test eax, eax
jne 0x40aad9
mov esi, esp
push 0
push str.error
push str.Failed_to_load_update_data
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00614e40
mov dword [ebp - 0x7a0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x788]
call fcn.0041b1d0
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ae0
mov eax, dword [ebp - 0x7a0]
jmp 0x40aff8
lea ecx, [ebp - 0x788]
call fcn.0041bd40
test eax, eax
jne 0x40acbf
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x788]
call fcn.0041b890
push str.UpUrl
lea edx, [ebp - 0x244]
push edx
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40ab28
push 0x6e8a00
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push str.HomePage
lea eax, [ebp - 0x244]
push eax
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40ab52
push 0x6e8b20
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push str.PayUrl
lea ecx, [ebp - 0x244]
push ecx
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40ab7f
push 0x6e8c20
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push 0x672f30
lea edx, [ebp - 0x244]
push edx
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40abac
push 0x6e8d20
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push 0x672f28
lea eax, [ebp - 0x244]
push eax
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40abd9
push 0x6e8e20
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push str.ExeName
lea ecx, [ebp - 0x244]
push ecx
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40ac06
push 0x6e8e60
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push str.LunchVer
lea edx, [ebp - 0x244]
push edx
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40ac33
push 0x6e8b00
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push str.GGUrl
lea eax, [ebp - 0x244]
push eax
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40ac60
push 0x6e8e80
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push str.UpLuchUrl
lea ecx, [ebp - 0x244]
push ecx
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40ac8d
push 0x6e8f80
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
push str.LunchName
lea edx, [ebp - 0x244]
push edx
call fcn.00616ff0
add esp, 8
test eax, eax
jne 0x40acba
push 0x6e9080
lea ecx, [ebp - 0x788]
call fcn.0041b890
jmp 0x40aad9
jmp 0x40aad9
lea ecx, [ebp - 0x788]
call fcn.0041b810
push str.TITANTHAI2023
push 0x6e8b00
call fcn.00616ff0
add esp, 8
test eax, eax
je 0x40ad3f
push 0
push str.Patch
push str.MHAutoPatch_needs_to_be_updated_Please_wait...
mov ecx, dword [ebp - 0x10]
call fcn.00426f00
call fcn.0040d340
mov dword [ebp - 0x7a4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x788]
call fcn.0041b1d0
mov dword [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ae0
mov eax, dword [ebp - 0x7a4]
jmp 0x40aff8
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str._MyUpdata.txt_abc_I64d
lea edx, [ebp - 0x244]
push edx
call fcn.00413490
add esp, 0x10
push 0x6e8a00
lea ecx, [ebp - 0x3c]
call fcn.00408430
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403c10
cmp dword [ebp - 0x24], 0x10
jb 0x40ad88
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x820], ecx
jmp 0x40ad91
lea edx, [ebp - 0x38]
mov dword [ebp - 0x820], edx
push 0
push 0
push str..ImageAutopatchMyUpdata.txt
mov eax, dword [ebp - 0x820]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x40adf7
mov dword [ebp - 0x7a8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x788]
call fcn.0041b1d0
mov dword [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ae0
mov eax, dword [ebp - 0x7a8]
jmp 0x40aff8
push 0x672e7c
lea ecx, [ebp - 0x7c8]
call fcn.004061b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7c8]
push ecx
lea edx, [ebp - 0x7d4]
push edx
mov ecx, 0x6e924c
call fcn.0040dfc0
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x7f4], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x7f4]
push ecx
mov ecx, 0x6e9260
call fcn.0040d7a0
mov edx, dword [ebp - 0x7f4]
mov eax, dword [edx + 8]
mov dword [0x6e9268], eax
mov byte [ebp - 4], 5
push 3
lea ecx, [ebp - 0x7fc]
call fcn.00654af0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7d4]
call fcn.00405fc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7fc]
call fcn.00654b30
mov byte [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x7c8]
call fcn.004062e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c8]
call fcn.00411ae0
call fcn.004508a0
push eax
lea ecx, [ebp - 0x794]
call fcn.004185a0
mov byte [ebp - 4], 9
mov ecx, 0x6e9260
call fcn.00412750
mov dword [ebp - 0x804], eax
mov ecx, dword [ebp - 0x804]
add ecx, 0x20
mov dword [ebp - 0x808], ecx
mov edx, dword [ebp - 0x808]
cmp dword [edx + 0x18], 0x10
jb 0x40aefa
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x828], ecx
jmp 0x40af09
mov edx, dword [ebp - 0x808]
add edx, 4
mov dword [ebp - 0x828], edx
mov eax, dword [ebp - 0x828]
push eax
lea ecx, [ebp - 0x794]
push ecx
call fcn.00412f30
add esp, 8
lea ecx, [ebp - 0x794]
call fcn.0040d940
push eax
push 0x3f6
call fcn.00448330
mov ecx, eax
call fcn.00435480
push 0
push 0
push 0
push 0
push 0
push 0x40cdb0
call fcn.0043d490
mov dword [ebp - 0x79c], eax
mov dword [ebp - 0x7d8], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x794]
sub edx, 0x10
mov dword [ebp - 0x80c], edx
mov ecx, dword [ebp - 0x80c]
call fcn.0040e7b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x788]
call fcn.0041b1d0
mov dword [ebp - 4], 0xa
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004062e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00411ae0
mov eax, dword [ebp - 0x7d8]
jmp 0x40aff8
push edx
mov ecx, ebp
push eax
lea edx, [0x40b028]
call fcn.00614e70
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x828
cmp ebp, esp
call fcn.00614e40
mov esp, ebp
pop ebp
ret