Function at 0x407d7d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push ebx
push esi
push edi
lea eax, [ebp + 8]
mov esi, ecx
push eax
mov dword [ebp - 4], esi
call fcn.004029af
lea eax, [ebp + 0xc]
lea ecx, [esi + 4]
push eax
call fcn.004029af
lea eax, [ebp + 0x10]
lea ecx, [esi + 8]
push eax
call fcn.004029af
push 0
push ecx
mov ecx, esp
push str.update_file_num
call fcn.0040321e
push ecx
mov ecx, esp
push str.update
call fcn.0040321e
mov ecx, 0x415dfc
call fcn.00408ea5
and dword [ebp - 0x24], 0
test eax, eax
mov dword [ebp - 0x48], eax
jle 0x4081b4
mov edi, str.yyyy_MM_dd
mov ebx, 0x800
mov esi, 0x412bf0
mov eax, dword [0x415050]
push dword [ebp - 0x24]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push str.update_file__d
push eax
call fcn.00403317
pop ecx
pop ecx
mov ecx, esp
push 0x412538
call fcn.0040321e
push ecx
mov ecx, esp
push 0x412bc8
call fcn.0040321e
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.004031eb
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x415dfc
call fcn.0040969a
push ecx
mov ecx, esp
push 0x412538
call fcn.0040321e
push ecx
mov ecx, esp
push str.path
call fcn.0040321e
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.004031eb
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x415dfc
call fcn.0040969a
push ecx
mov ecx, esp
push 0x412538
call fcn.0040321e
push ecx
mov ecx, esp
push str.verify
call fcn.0040321e
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.004031eb
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x415dfc
call fcn.0040969a
and word [ebp - 0xc], 0
push 0
push ecx
mov ecx, esp
push 0x412ba4
call fcn.0040321e
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.004031eb
mov ecx, 0x415dfc
call fcn.00408ea5
push 0
push ecx
test eax, eax
setne al
mov ecx, esp
push str.is_main
mov byte [ebp - 0xa], al
call fcn.0040321e
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.004031eb
mov ecx, 0x415dfc
call fcn.00408ea5
test eax, eax
je 0x407f0c
mov word [ebp - 0xc], 1
jmp 0x407f5b
push 0
push 0x412b14
lea ecx, [ebp - 0x14]
call fcn.00401837
test eax, eax
jle 0x407f27
mov word [ebp - 0xc], 2
jmp 0x407f5b
push 0
push str..dll
lea ecx, [ebp - 0x14]
call fcn.00401837
test eax, eax
jle 0x407f42
mov word [ebp - 0xc], 3
jmp 0x407f5b
push 0
push 0x412b7c
lea ecx, [ebp - 0x14]
call fcn.00401837
test eax, eax
jle 0x407f5b
mov word [ebp - 0xc], 4
cmp word [ebp - 0xc], 1
mov eax, dword [0x415050]
mov dword [ebp - 0x20], eax
jne 0x407fbf
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.004031eb
lea eax, [ebp - 0x50]
push eax
call fcn.004033b7
pop ecx
pop ecx
push eax
mov eax, dword [ebp - 4]
push 0x412b78
add eax, 8
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040336b
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0040332a
push eax
lea ecx, [ebp - 0x20]
call fcn.004029af
lea ecx, [ebp - 0x3c]
call fcn.00401869
lea ecx, [ebp - 0x58]
call fcn.00401869
lea ecx, [ebp - 0x50]
jmp 0x407fdf
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040332a
push eax
lea ecx, [ebp - 0x20]
call fcn.004029af
lea ecx, [ebp - 0x34]
call fcn.00401869
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.004029af
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40815b
mov eax, dword [0x415050]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push edi
lea ecx, [ebp - 0x54]
call fcn.0040321e
mov eax, dword [eax]
mov eax, dword [eax - 8]
push edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], eax
call fcn.0040321e
mov eax, dword [eax]
push dword [ebp - 0x1c]
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401de1
push eax
push edi
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea ecx, [ebp - 0x44]
call fcn.00401869
lea ecx, [ebp - 0x54]
call fcn.00401869
push esi
lea ecx, [ebp - 0x38]
call fcn.0040321e
mov eax, dword [eax]
mov eax, dword [eax - 8]
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
call fcn.0040321e
mov eax, dword [eax]
push dword [ebp - 0x1c]
mov eax, dword [eax - 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401de1
push eax
push esi
lea eax, [ebp - 0x68]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
lea ecx, [ebp - 0x4c]
call fcn.00401869
lea ecx, [ebp - 0x38]
call fcn.00401869
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.004026c3
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
call fcn.004026c3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040332a
push eax
lea ecx, [ebp - 0x30]
call fcn.004029af
lea ecx, [ebp - 0x40]
call fcn.00401869
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x408141
cmp word [ebp - 0xc], 1
jne 0x408132
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
lea edx, [ebp - 0x18]
push edx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [eax + 0xc]
call fcn.004075fc
jmp 0x408141
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
add ecx, 0xc
call fcn.00407ae9
lea ecx, [ebp - 0x28]
call fcn.00401869
lea ecx, [ebp - 0x2c]
call fcn.00401869
lea ecx, [ebp - 0x30]
call fcn.00401869
jmp 0x40818a
cmp word [ebp - 0xc], 1
jne 0x40817b
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
lea edx, [ebp - 0x18]
push edx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [eax + 0xc]
call fcn.004075fc
jmp 0x40818a
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
add ecx, 0xc
call fcn.00407ae9
lea ecx, [ebp - 0x20]
call fcn.00401869
lea ecx, [ebp - 0x18]
call fcn.00401a17
lea ecx, [ebp - 8]
call fcn.00401869
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x48]
jl 0x407df3
mov esi, dword [ebp - 4]
lea ecx, [ebp + 8]
call fcn.00401869
lea ecx, [ebp + 0xc]
call fcn.00401869
lea ecx, [ebp + 0x10]
call fcn.00401869
pop edi
lea eax, [esi + 0xc]
pop esi
pop ebx
leave
ret 0xc