Function at 0x40d070
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d490
mov eax, dword fs:[0]
push eax
sub esp, 0x76c
mov eax, dword [0x4b03e8]
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
push 8
xor eax, eax
mov dword [ebp - 0x454], 7
push str.XinSuZip
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
call fcn.00405810
push 3
push 0x49175c
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], 0
call fcn.00407450
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
lea ecx, [ebp - 0x774]
cmovae eax, dword [ebp - 0x468]
push eax
call fcn.0041cce0
lea ecx, [ebp - 0x774]
mov byte [ebp - 4], 1
call fcn.00405e40
test eax, eax
je 0x40d120
xor esi, esi
jmp 0x40d8dd
push 0x48
push str.http:__down.zhilingshidai.com_ys_xs_58b7e1a7c04546a74079c747969562db.xdi
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], 0
mov byte [ebp - 0x450], 0
call fcn.0040bf30
cmp dword [ebp - 0x440], 0
mov byte [ebp - 4], 2
jne 0x40d161
xor esi, esi
jmp 0x40d8a4
cmp dword [0x4b5ec8], 0
jne 0x40d16f
call fcn.0040f1d0
mov ecx, dword [0x4b5ec8]
push 0
call fcn.0040a790
lea ecx, [ebp - 0x620]
call fcn.00424e87
lea ecx, [ebp - 0x750]
mov byte [ebp - 4], 3
call fcn.0041e480
cmp dword [0x4b5ea0], 0
mov byte [ebp - 4], 4
jne 0x40d1a8
call fcn.00409120
mov ecx, dword [0x4b5ea0]
call fcn.00405740
push eax
lea ecx, [ebp - 0x4e0]
call fcn.004056b0
lea eax, [ebp - 0x4e0]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x750]
call fcn.0041e702
mov eax, dword [ebp - 0x4cc]
cmp eax, 8
jb 0x40d1f3
inc eax
lea ecx, [ebp - 0x4e0]
push eax
push dword [ebp - 0x4e0]
call fcn.00405910
lea eax, [ebp - 0x548]
mov dword [ebp - method.std::_Func_impl_class__lambda_f58d582c4ddb8cd6edc371f59bea9b71___class_std::allocator_int___void__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.virtual_0], vtable.std::_Func_impl_class__lambda_f58d582c4ddb8cd6edc371f59bea9b71___class_std::allocator_int___void__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [ebp - 0x524], eax
lea eax, [ebp - 0x508]
mov dword [ebp - method.std::_Func_impl_class__lambda_00311f10fad049305ff1c6759f29a32f___class_std::allocator_int___unsigned_long_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.virtual_0], vtable.std::_Func_impl_class__lambda_00311f10fad049305ff1c6759f29a32f___class_std::allocator_int___unsigned_long_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [ebp - 0x4e4], eax
lea eax, [ebp - 0x548]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp - 0x750]
call fcn.0041e796
mov ecx, dword [ebp - 0x4e4]
test ecx, ecx
je 0x40d264
mov edx, dword [ecx]
lea eax, [ebp - 0x508]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x4e4], 0
mov ecx, dword [ebp - 0x524]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40d286
mov edx, dword [ecx]
lea eax, [ebp - 0x548]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40d2a3
mov eax, dword [ecx]
jmp 0x40d2a5
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.00409480
lea ecx, [ebp - 0x620]
call fcn.00425293
xor edi, edi
xor bh, bh
xor bl, bl
mov dword [ebp - 0x758], edi
mov byte [ebp - 0x752], bh
mov byte [ebp - 0x751], bl
nop dword [eax + eax]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0x18
mov dword [ebp - 0x75c], 0
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x40d312
mov eax, dword [ecx]
jmp 0x40d314
mov eax, ecx
push 0x48
push str.http:__down.zhilingshidai.com_ys_xs_58b7e1a7c04546a74079c747969562db.xdi
mov byte [eax], 0
call fcn.0040bf30
lea ecx, [ebp - 0x620]
call fcn.0042509a
test al, al
jne 0x40d33a
test bh, bh
je 0x40d604
lea ecx, [ebp - 0x620]
call fcn.00425287
mov ebx, eax
test edi, edi
jne 0x40d467
lea ecx, [ebp - 0x620]
call fcn.0042528f
test al, al
je 0x40d467
push 5
push str.d55c9
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x484], 0xf
mov dword [ebp - 0x488], edi
mov byte [ebp - 0x498], 0
call fcn.0040bf30
lea ecx, [ebp - 0x764]
mov byte [ebp - 4], 8
call fcn.0042576c
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x764]
call fcn.0042938e
cmp dword [ebp - 0x46c], 0x10
lea esi, [ebp - 0x480]
lea edi, [ebp - 0x498]
mov byte [ebp - 4], 0xa
cmovae esi, dword [ebp - 0x480]
cmp dword [ebp - 0x484], 0x10
cmovae edi, dword [ebp - 0x498]
cmp dword [0x4b5ec8], 0
jne 0x40d3ea
call fcn.0040f1d0
mov ecx, dword [0x4b5ec8]
push esi
push 1
push edi
push 1
call fcn.0040b200
mov eax, dword [ebp - 0x46c]
cmp eax, 0x10
jb 0x40d419
inc eax
lea ecx, [ebp - 0x480]
push eax
push dword [ebp - 0x480]
call fcn.004095b0
lea ecx, [ebp - 0x764]
mov dword [ebp - 0x46c], 0xf
mov dword [ebp - 0x470], 0
mov byte [ebp - 0x480], 0
call fcn.00413ec0
mov eax, dword [ebp - 0x484]
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x40d461
inc eax
lea ecx, [ebp - 0x498]
push eax
push dword [ebp - 0x498]
call fcn.004095b0
mov edi, dword [ebp - 0x758]
cmp dword [0x4b5ea0], 0
jne 0x40d475
call fcn.00409120
mov ecx, dword [0x4b5ea0]
lea eax, [ebp - 0x520]
push eax
call fcn.0040c5c0
push 0
push 0
push eax
push ebx
push 0
lea ecx, [ebp - 0x750]
mov byte [ebp - 4], 0xb
call fcn.0041e671
movzx esi, al
mov eax, dword [ebp - 0x50c]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x40d4c3
inc eax
lea ecx, [ebp - 0x520]
push eax
push dword [ebp - 0x520]
call fcn.00405910
test edi, edi
jne 0x40d5e3
lea ecx, [ebp - 0x620]
call fcn.0042528f
test al, al
je 0x40d5e3
push 5
push str.97466
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 0x4b4], 0xf
mov dword [ebp - 0x4b8], edi
mov byte [ebp - 0x4c8], 0
call fcn.0040bf30
lea ecx, [ebp - 0x76c]
mov byte [ebp - 4], 0xc
call fcn.0042576c
lea eax, [ebp - 0x4b0]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x76c]
call fcn.0042938e
xor ebx, ebx
mov byte [ebp - 4], 0xe
test esi, esi
lea edi, [ebp - 0x4c8]
lea esi, [ebp - 0x4b0]
setne bl
cmp dword [ebp - 0x49c], 0x10
cmovae esi, dword [ebp - 0x4b0]
cmp dword [ebp - 0x4b4], 0x10
cmovae edi, dword [ebp - 0x4c8]
cmp dword [0x4b5ec8], 0
jne 0x40d56d
call fcn.0040f1d0
mov ecx, dword [0x4b5ec8]
push esi
push ebx
push edi
push 1
call fcn.0040b200
mov eax, dword [ebp - 0x49c]
cmp eax, 0x10
jb 0x40d59b
inc eax
lea ecx, [ebp - 0x4b0]
push eax
push dword [ebp - 0x4b0]
call fcn.004095b0
lea ecx, [ebp - 0x76c]
mov dword [ebp - 0x49c], 0xf
mov dword [ebp - 0x4a0], 0
mov byte [ebp - 0x4b0], 0
call fcn.00413ec0
mov eax, dword [ebp - 0x4b4]
mov byte [ebp - 4], 4
cmp eax, 0x10
jb 0x40d5e3
inc eax
lea ecx, [ebp - 0x4c8]
push eax
push dword [ebp - 0x4c8]
call fcn.004095b0
lea ecx, [ebp - 0x620]
mov dword [ebp - 0x758], 1
call fcn.0042575f
mov bl, byte [ebp - 0x751]
mov bh, byte [ebp - 0x752]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004357e0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004357e0
add esp, 0x18
lea eax, [ebp - 0x420]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.0043593a
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x40d660
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d681
mov ecx, 0xb
mov esi, str.LocalLowExplorerMenu_
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
movsw word es:[edi], word [esi]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d6a4
mov eax, dword [str.Inerjectv]
lea edi, [ebp - 0x218]
mov dword [ecx], eax
add edi, 0xfffffffe
mov eax, dword [0x491910]
mov dword [ecx + 4], eax
mov eax, dword [0x491914]
mov dword [ecx + 8], eax
mov eax, dword [0x491918]
mov dword [ecx + 0xc], eax
mov eax, dword [0x49191c]
mov dword [ecx + 0x10], eax
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40d6e0
mov ecx, 6
lea eax, [ebp - 0x218]
mov esi, str.RunDate.ini
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d839
call fcn.0041e2f1
push 0
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00423edf
add esp, 0xc
cmp dword [ebp - 0x428], 8
mov byte [ebp - 4], 0xf
jne 0x40d7cf
push 4
push 4
lea eax, [ebp - 0x560]
push eax
lea ecx, [ebp - 0x438]
call fcn.00407160
push eax
lea ecx, [ebp - 0x438]
call fcn.004071f0
lea ecx, [ebp - 0x560]
call fcn.00405670
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push ecx
push 0
push str.Interval
push eax
call edi
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x438]
mov esi, eax
lea eax, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x438]
push eax
push 0xffffffffffffffff
push str.Disable
push ecx
call edi
cmp eax, 1
je 0x40d7cf
test esi, esi
je 0x40d7cf
mov bh, 1
imul esi, esi, 0xea60
mov byte [ebp - 0x752], bh
jmp 0x40d7d5
mov esi, dword [ebp - 0x75c]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x40d7f7
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.00405910
test esi, esi
je 0x40d839
test bl, bl
jne 0x40d827
cmp dword [0x4b5ec8], 0
mov bl, 1
mov byte [ebp - 0x751], bl
jne 0x40d815
call fcn.0040f1d0
mov ecx, dword [0x4b5ec8]
push str.97466
push 1
call fcn.0040ab50
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x758]
jmp 0x40d2e0
lea ecx, [ebp - 0x620]
call fcn.0042528b
test al, al
je 0x40d889
mov edi, dword [ebp - 0x758]
test bl, bl
jne 0x40d2e0
cmp dword [0x4b5ec8], 0
mov bl, 1
mov byte [ebp - 0x751], bl
jne 0x40d86c
call fcn.0040f1d0
mov ecx, dword [0x4b5ec8]
push str.97466
push 1
call fcn.0040ab50
mov edi, dword [ebp - 0x758]
jmp 0x40d2e0
lea ecx, [ebp - 0x750]
mov esi, 1
call fcn.0041e496
lea ecx, [ebp - 0x620]
call fcn.00424f8d
mov eax, dword [ebp - 0x43c]
cmp eax, 0x10
jb 0x40d8c2
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.004095b0
mov dword [ebp - 0x43c], 0xf
mov dword [ebp - 0x440], 0
mov byte [ebp - 0x450], 0
lea ecx, [ebp - 0x774]
call fcn.0041ccf5
mov ecx, dword [ebp - 0x454]
cmp ecx, 8
jb 0x40d906
inc ecx
push ecx
push dword [ebp - 0x468]
lea ecx, [ebp - 0x468]
call fcn.00405910
mov eax, esi
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.004168b6
mov esp, ebp
pop ebp
ret