Function at 0x408050
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 - 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 - 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 - 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 0x408111
mov dword [eax], ebx
add esi, 0x14
lea eax, [ebp - 0x88]
push esi
push 0x40
push eax
push ebx
push str.HotVer
mov ecx, 0x418b48
call fcn.00402170
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
call edi
test eax, eax
je 0x40841c
push esi
lea ecx, [ebp - 0x99c]
push 0x400
push ecx
push ebx
push str.HotPatch
mov ecx, 0x418b48
call fcn.00402170
push eax
call edi
test eax, eax
je 0x40841c
lea edx, [ebp - 0x48]
push 0x40
push edx
call fcn.00405780
add esp, 8
test eax, eax
je 0x408196
lea eax, [ebp - 0x48]
push 1
lea ecx, [ebp - 0x88]
push eax
push ecx
call fcn.0040a070
add esp, 0xc
test eax, eax
jle 0x408415
call fcn.00403290
test eax, eax
je 0x408243
mov edx, dword [ebp - 8]
push 0x104
add edx, 0x21c
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.00405c70
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 0x40821d
lea edx, [ebp - 0x290]
push ebx
push edx
call fcn.00402cc0
add esp, 8
test eax, eax
je 0x40841c
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 0x40828d
push 0x414654
push ebx
call dword [sym.imp.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 dword [sym.imp.MSVCRT.dll_free]
push 0x104
lea eax, [ebp - 0x18c]
push str..exe
push eax
call fcn.004032d0
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, 0x418b48
call fcn.00402170
push eax
call edi
test eax, eax
je 0x40841c
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.004086d0
test eax, eax
je 0x40841c
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 0x40841c
lea ecx, [ebp - 0x59c]
push ecx
call fcn.004066a0
test eax, eax
je 0x40841c
cmp dword [esi + 4], ebx
jne 0x40841c
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40832b
mov dword [eax], 1
call fcn.00403290
test eax, eax
je 0x40837b
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 0x40841c
lea ecx, [ebp - 0x18c]
push 1
push ecx
call fcn.004022e0
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 0x4083a1
xor edi, edi
jmp 0x4083d6
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.0040bd30
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 dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [ebp - 0xdac]
push 0xea60
push edx
push ebx
call fcn.00408450
add esp, 0x20
test eax, eax
je 0x408415
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x408415
mov dword [eax], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40843e
lea ecx, [ebp - 0x18c]
push 1
push ecx
call fcn.004022e0
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