Function at 0x40a650
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 0x40a711
mov dword [eax], ebx
add esi, 0x14
lea eax, [ebp - 0x48]
push esi
push 0x40
push eax
push ebx
push str.HotVer
mov ecx, 0x41d0a8
call fcn.00402a40
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
call edi
test eax, eax
je 0x40aa32
push esi
lea ecx, [ebp - 0x99c]
push 0x400
push ecx
push ebx
push str.HotPatch
mov ecx, 0x41d0a8
call fcn.00402a40
push eax
call edi
test eax, eax
je 0x40aa32
lea edx, [ebp - 0x88]
push 0x40
push edx
call fcn.004074d0
add esp, 8
test eax, eax
je 0x40a796
lea eax, [ebp - 0x88]
push 1
lea ecx, [ebp - 0x48]
push eax
push ecx
call fcn.0040c630
add esp, 0xc
test eax, eax
jle 0x40aa2b
call fcn.00402db0
test eax, eax
je 0x40a843
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 0x40a81d
lea edx, [ebp - 0x290]
push ebx
push edx
call fcn.00403d80
add esp, 8
test eax, eax
je 0x40aa32
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 0x40a88b
push 0x418914
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.00402df0
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, 0x41d0a8
call fcn.00402a40
push eax
call edi
test eax, eax
je 0x40aa32
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.0040acf0
test eax, eax
je 0x40aa32
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 0x40aa32
lea ecx, [ebp - 0x59c]
push ecx
call fcn.00408410
test eax, eax
je 0x40aa32
cmp dword [esi + 4], ebx
jne 0x40aa32
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40a929
mov dword [eax], 1
call fcn.00402db0
test eax, eax
je 0x40a979
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 0x40aa32
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 0x40a99f
xor edi, edi
jmp 0x40a9d4
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.0040ee00
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 0x418928
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.0040aa70
add esp, 0x20
test eax, eax
je 0x40aa2b
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 0x40aa2b
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 0x40aa54
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