Function at 0x45c070
Capabilities:
Check for time delay via gettickcount
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6704f4
mov eax, dword fs:[0]
push eax
sub esp, 0x704
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x6fc], eax
lea eax, [ebp - 0x628]
push 0
push eax
mov dword [ebp - 0x704], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x628]
call fcn.00459680
test eax, eax
je 0x45c9e8
lea eax, [ebp - 0x6dc]
mov byte [ebp - 0x6f1], 1
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x6e0], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c0f5
sub ecx, edx
lea eax, [ebp - 0x6dc]
sar ecx, 1
push 0x80
push eax
lea eax, [ebp - 0x6e0]
lea edi, [ecx + 1]
lea esi, [edi*4]
push esi
push eax
call fcn.0045d990
add esp, 0x10
lea eax, [ebp - 0x628]
push 0
push 0
push esi
push dword [ebp - 0x6e0]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push eax
push 0
push 3
call esi
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x708], ecx
test eax, eax
jne 0x45c1c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45c1bf
push 0
push 0
push 0
push 0
push edi
lea eax, [ebp - 0x628]
push eax
push 0
push 3
call esi
mov esi, eax
lea eax, [ebp - 0x6dc]
push 0x80
push eax
lea eax, [ebp - 0x6e0]
push esi
push eax
call fcn.0045d990
add esp, 0x10
lea eax, [ebp - 0x628]
push 0
push 0
push esi
push dword [ebp - 0x6e0]
push edi
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x45c1c5
mov ecx, dword [ebp - 0x708]
test ecx, ecx
jne 0x45c9ef
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x6e0]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c1e0
sub ecx, esi
push ecx
push edx
mov ecx, ebx
call fcn.0042a9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6dc]
mov eax, dword [ebp - 0x6e0]
cmp eax, ecx
je 0x45c213
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x5c
mov ecx, ebx
call fcn.0045ce20
mov esi, dword [ebp - 0x6fc]
mov ecx, ebx
push esi
call fcn.00429d10
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x45c234
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x45c3c7
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45c3a3
push 0x39
push str.f:master_luinst_ui_marketdependence_file_downloader.cc
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], al
call fcn.0042a9a0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x640]
push 3
push 0x6d1880
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
call fcn.0042a9a0
mov byte [ebp - 4], 2
call fcn.00509500
mov edi, eax
lea ecx, [ebp - 0x6f0]
push 0x6f
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.0042c590
mov esi, eax
push str.need_download_file_is_not_exsist___filepath_
push esi
mov byte [ebp - 4], 3
call fcn.0042c400
add esp, 8
mov ecx, esi
push ebx
call fcn.0045dbc0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x6f0]
call fcn.00428ee0
mov edx, dword [ebp - 0x62c]
cmp edx, 0x10
jb 0x45c34c
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c342
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45c342
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov edx, dword [ebp - 0x644]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
cmp edx, 0x10
jb 0x45c3a3
mov ecx, dword [ebp - 0x658]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c399
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45c399
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov al, byte [ebp - 0x6f1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x58], 0
je 0x45c9e8
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x45ca0e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x708], eax
mov dword [ebp - 4], 4
mov edi, ebx
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x700], edi
jb 0x45c40b
mov edi, dword [ebx]
mov dword [ebp - 0x700], edi
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x45ca18
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x6f8], esi
mov byte [ebp - 4], 5
test edi, edi
je 0x45c4ac
test edi, 0xffff0000
jne 0x45c449
movzx eax, di
lea ecx, [ebp - 0x6f8]
push eax
call fcn.00441820
jmp 0x45c4b7
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x45c4ac
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, edi
or ecx, edx
jge 0x45c484
push edi
lea ecx, [ebp - 0x6f8]
call fcn.00441ae0
mov esi, dword [ebp - 0x6f8]
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x700]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, dword [esi - 8]
jg 0x45ca22
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x45c4bd
lea ecx, [ebp - 0x6f8]
call fcn.00441990
mov esi, dword [ebp - 0x6f8]
lea eax, [ebp - 0x708]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x6f8]
push eax
call fcn.00457af0
add esp, 8
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45c4f3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x6fc]
add edi, 0x48
mov dword [ebp - 0x6fc], edi
cmp dword [edi + 0x14], 0x10
jb 0x45c510
mov edi, dword [edi]
mov dword [ebp - 0x6fc], edi
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x45ca2c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x6f8], esi
mov byte [ebp - 4], 7
test edi, edi
je 0x45c5b1
test edi, 0xffff0000
jne 0x45c54e
movzx eax, di
lea ecx, [ebp - 0x6f8]
push eax
call fcn.00441820
jmp 0x45c5bc
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax - 1]
test edi, edi
jle 0x45c5b1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x45c589
push edi
lea ecx, [ebp - 0x6f8]
call fcn.00441ae0
mov esi, dword [ebp - 0x6f8]
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x6fc]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp edi, dword [esi - 8]
jg 0x45ca22
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
jmp 0x45c5c2
lea ecx, [ebp - 0x6f8]
call fcn.00441990
mov esi, dword [ebp - 0x6f8]
lea eax, [ebp - 0x710]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x6fc]
mov ecx, esi
call fcn.00459740
mov edi, dword [ebp - 0x708]
lea eax, [ebp - 0x70c]
add esp, 4
lea edx, [ebp - 0x700]
mov ecx, edi
push eax
call fcn.00459740
mov eax, dword [ebp - 0x6fc]
add esp, 4
mov ecx, dword [ebp - 0x700]
cmp eax, ecx
jne 0x45c618
mov eax, dword [ebp - 0x710]
sub eax, dword [ebp - 0x70c]
jmp 0x45c61a
sub eax, ecx
test eax, eax
jle 0x45c9ae
call fcn.00509500
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45c7cb
push 0x39
push str.f:master_luinst_ui_marketdependence_file_downloader.cc
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], al
call fcn.0042a9a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x640]
push 3
push 0x6d1880
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
call fcn.0042a9a0
mov byte [ebp - 4], 0xa
call fcn.00509500
mov dword [ebp - 0x70c], eax
lea ecx, [ebp - 0x6f0]
push 0x7a
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.0042c590
mov dword [ebp - 0x700], eax
push str.need_download_file_version_is_old__version_
push eax
mov byte [ebp - 4], 0xb
call fcn.0042c400
mov ebx, str._null_
test edi, edi
mov ecx, ebx
cmovne ecx, edi
push ecx
push dword [ebp - 0x700]
call fcn.0043f750
push str.__config_version_is
push dword [ebp - 0x700]
call fcn.0042c400
test esi, esi
cmovne ebx, esi
push ebx
mov ebx, dword [ebp - 0x700]
push ebx
call fcn.0043f750
mov ecx, dword [ebp - 0x70c]
add esp, 0x20
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x6f0]
call fcn.00428ee0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x62c]
cmp edx, 0x10
jb 0x45c76a
mov ecx, dword [ebp - 0x640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c760
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45c760
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x644]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
cmp edx, 0x10
jb 0x45c7c5
mov ecx, dword [ebp - 0x658]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c7bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45c7bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov ebx, dword [ebp - 0x704]
cmp dword [ebx + 0x14], 0x10
jb 0x45c7d3
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x6fc]
call fcn.0045ee80
mov ebx, dword [ebp - 0x6fc]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x704], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebx, eax
lea eax, [ebp - 0x218]
push ebx
push eax
push str._slds__u.tmp
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00457fd0
mov ebx, dword [ebp - 0x704]
lea eax, [ebp - 0x420]
add esp, 0x14
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x45c885
push 4
push 0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c94e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c94e
movzx eax, word [ebx]
push eax
push str._c:.temp
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00457fd0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c8ef
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebx, eax
lea eax, [ebp - 0x218]
push ebx
push eax
push str._slds__u.tmp
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00457fd0
mov ebx, dword [ebp - 0x704]
lea eax, [ebp - 0x420]
add esp, 0x14
push 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
test eax, eax
je 0x45c947
lea eax, [ebp - 0x420]
push eax
jmp 0x45c948
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x6fc]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c96e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45c989
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45c3a3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45c3a3
or ebx, 0xffffffff
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45c9cc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x45c9e8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x45c3a9
push 0x80
lea eax, [ebp - 0x6dc]
push eax
push dword [ebp - 0x6e0]
call fcn.0045d970
add esp, 0xc
call fcn.0045ed70
push 0x80004005
call fcn.00422220
push 0x80004005
call fcn.00422220
push 0x80070057
call fcn.00422220
push 0x80004005
call fcn.00422220
int3