Function at 0x40a1f0
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 0x40a2b1
mov dword [eax], ebx
add esi, 0x14
lea eax, [ebp - 0x48]
push esi
push 0x40
push eax
push ebx
push str.HotVer
mov ecx, 0x41bfc8
call fcn.00402a40
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
call edi
test eax, eax
je 0x40a5d2
push esi
lea ecx, [ebp - 0x99c]
push 0x400
push ecx
push ebx
push str.HotPatch
mov ecx, 0x41bfc8
call fcn.00402a40
push eax
call edi
test eax, eax
je 0x40a5d2
lea edx, [ebp - 0x88]
push 0x40
push edx
call fcn.004074d0
add esp, 8
test eax, eax
je 0x40a336
lea eax, [ebp - 0x88]
push 1
lea ecx, [ebp - 0x48]
push eax
push ecx
call fcn.0040c190
add esp, 0xc
test eax, eax
jle 0x40a5cb
call fcn.00402da0
test eax, eax
je 0x40a3e3
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.004079f0
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 0x40a3bd
lea edx, [ebp - 0x290]
push ebx
push edx
call fcn.00403d90
add esp, 8
test eax, eax
je 0x40a5d2
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 0x40a42b
push 0x417904
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.00402de0
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, 0x41bfc8
call fcn.00402a40
push eax
call edi
test eax, eax
je 0x40a5d2
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.0040a890
test eax, eax
je 0x40a5d2
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 0x40a5d2
lea ecx, [ebp - 0x59c]
push ecx
call fcn.00408410
test eax, eax
je 0x40a5d2
cmp dword [esi + 4], ebx
jne 0x40a5d2
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40a4c9
mov dword [eax], 1
call fcn.00402da0
test eax, eax
je 0x40a519
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 0x40a5d2
lea ecx, [ebp - 0x18c]
push 1
push ecx
call fcn.004033b0
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 0x40a53f
xor edi, edi
jmp 0x40a574
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.0040e5a0
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.0040a610
add esp, 0x20
test eax, eax
je 0x40a5cb
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.00407560
mov eax, dword [ebp + 8]
add esp, 8
cmp eax, ebx
je 0x40a5cb
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 0x40a5f4
lea edx, [ebp - 0x18c]
push 1
push edx
call fcn.004033b0
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