Function at 0x408750
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdac
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x18b]
mov byte [ebp - 0x18c], bl
mov byte [ebp - 0x290], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x28f]
mov word [ebp - 0x59c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x59a]
mov byte [ebp - 0x99c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x99b]
mov byte [ebp - 0x48], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x47]
mov byte [ebp - 0x88], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x87]
mov byte [ebp - 0x394], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x393]
mov dword [ebp - 8], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x408811
mov dword [eax], ebx
add esi, 0x14
lea eax, [ebp - 0x48]
push esi
push 0x40
push eax
push ebx
push str.HotVer
mov ecx, 0x41cd88
call fcn.00402260
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
call edi
test eax, eax
je 0x408b32
push esi
lea ecx, [ebp - 0x99c]
push 0x400
push ecx
push ebx
push str.HotPatch
mov ecx, 0x41cd88
call fcn.00402260
push eax
call edi
test eax, eax
je 0x408b32
lea edx, [ebp - 0x88]
push 0x40
push edx
call fcn.00405b90
add esp, 8
test eax, eax
je 0x408896
lea eax, [ebp - 0x88]
push 1
lea ecx, [ebp - 0x48]
push eax
push ecx
call fcn.0040b410
add esp, 0xc
test eax, eax
jle 0x408b2b
call fcn.004068e0
test eax, eax
je 0x408943
mov edx, dword [ebp - 8]
push 0x104
add edx, 0x220
lea eax, [ebp - 0x18c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x290]
push 0x104
push ecx
push 0x10
call fcn.004060b0
add esp, 0xc
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x290]
push str.Update
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x290]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40891d
lea edx, [ebp - 0x290]
push ebx
push edx
call fcn.00402db0
add esp, 8
test eax, eax
je 0x408b32
lea eax, [ebp - 0x18c]
push str.HotPatch.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x290]
push str.HotPatch.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x40898b
push 0x418684
push ebx
call sub.MSVCRT.dll__tempnam
add esp, 8
mov edi, eax
lea edx, [ebp - 0x18c]
push 0x104
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
call sub.MSVCRT.dll_free
push 0x104
lea eax, [ebp - 0x18c]
push str..exe
push eax
call fcn.00403370
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x10
push esi
lea ecx, [ebp - 0x394]
push 0x104
push ecx
push ebx
push str.Hotbase
mov ecx, 0x41cd88
call fcn.00402260
push eax
call edi
test eax, eax
je 0x408b32
mov esi, dword [ebp - 8]
lea edx, [ebp - 0x394]
lea eax, [ebp - 0x18c]
push edx
lea ecx, [ebp - 0x99c]
push eax
push ecx
mov ecx, esi
call fcn.00408df0
test eax, eax
je 0x408b32
lea edx, [ebp - 0x59c]
push 0x104
push edx
lea eax, [ebp - 0x18c]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x408b32
lea ecx, [ebp - 0x59c]
push ecx
call fcn.00406b10
test eax, eax
je 0x408b32
cmp dword [esi + 4], ebx
jne 0x408b32
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x408a29
mov dword [eax], 1
call fcn.004068e0
test eax, eax
je 0x408a79
lea edx, [ebp - 0x290]
push ebx
lea eax, [ebp - 0x18c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x408b32
lea ecx, [ebp - 0x18c]
push 1
push ecx
call fcn.004023d0
add esp, 8
lea edx, [ebp - 0x290]
lea eax, [ebp - 0x18c]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0xdaa]
mov word [ebp - 0xdac], bx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x18c]
test ecx, ecx
stosw word es:[edi], ax
jne 0x408a9f
xor edi, edi
jmp 0x408ad4
lea edx, [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040fab0
mov edi, esp
push esi
push edi
lea eax, [ebp - 0x18c]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push str._Update
push edi
push str.__s___s
lea ecx, [ebp - 0xdac]
push 0x207
push ecx
call sub.MSVCRT.dll__snwprintf
lea edx, [ebp - 0xdac]
push 0xea60
push edx
push ebx
call fcn.00408b70
add esp, 0x20
test eax, eax
je 0x408b2b
lea edi, [ebp - 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebp - 0x48]
push ecx
push eax
call fcn.00405c20
mov eax, dword [ebp + 8]
add esp, 8
cmp eax, ebx
je 0x408b2b
mov dword [eax], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408b54
lea edx, [ebp - 0x18c]
push 1
push edx
call fcn.004023d0
add esp, 8
mov eax, dword [ebp - 4]
lea esp, [ebp - 0xdb8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4