Function at 0x405c20
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485a98
mov eax, dword fs:[0]
push eax
mov eax, 0x149c
call fcn.004852b0
mov eax, dword [0x4a1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x898], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
je 0x405c73
mov ecx, dword [0x4a2b14]
push eax
push 0x15
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
cmp byte [edi + 0x6c6], 1
jne 0x405d8a
cmp dword [0x4a2b0c], 0
je 0x405d6b
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0x88c], 0
lea eax, [ebp - 0x410]
mov dword [ebp - 0x873], 0
xorps xmm0, xmm0
mov byte [ebp - 0x86f], 0
movups xmmword [ebp - 0x88b], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0x87b], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push 0x498b98
push eax
call fcn.0040c3f0
push dword [edi + 4]
lea eax, [ebp - 0x88c]
push 0x498a5c
push eax
call fcn.0040c410
add esp, 0x18
mov dword [edi + 0x3ae], 2
lea eax, [ebp - 0x810]
mov byte [edi + 0x4ab], 0
push eax
push 0x498f68
lea eax, [ebp - 0x88c]
push eax
push 0x498c4c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x498f6c
mov ecx, esi
call fcn.00412a30
add esp, 4
test eax, eax
jne 0x405d6b
mov byte [edi + 0x4d5], 0xe
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042996d
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 0x3d2], 0
mov eax, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
je 0x405dec
push 0
call eax
sub eax, dword [edi + 0x3d2]
add esp, 4
cmp eax, 0xb4
jae 0x405de7
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x498bdc
mov dword [ebp - 4], 0
mov ecx, dword [0x4a2b14]
mov eax, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x12
push esi
call eax
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, 1
jmp 0x405d6d
mov eax, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push 0
call eax
sub eax, dword [edi]
add esp, 4
cmp eax, 0x2a300
jbe 0x405e5f
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x498f78
mov dword [ebp - 4], 1
mov ecx, dword [0x4a2b14]
mov eax, dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x12
push esi
call eax
cmp dword [0x4a2b0c], 0
mov byte [edi + 0x6c6], 1
je 0x405e4e
push 0x498f78
mov ecx, esi
call fcn.00412a30
add esp, 4
test eax, eax
jne 0x405e4e
mov byte [edi + 0x4d5], 0xe
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x405d6b
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x890]
mov dword [ebp - 0x840], edx
lea ecx, [ebp - 0x844]
push eax
call fcn.0040c6b0
test eax, eax
je 0x405e95
mov eax, dword [eax + 0x10]
inc eax
cmp eax, 7
je 0x405ebc
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x844]
call fcn.0040c6b0
test eax, eax
je 0x405d6b
mov eax, dword [eax + 0x10]
inc eax
cmp eax, 8
jne 0x405d6b
push 0x30
lea eax, [edi + 0x352]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
mov dword [edi + 0x498], 0
mov byte [edi + 0x470], 0
mov dword [edi + 0x48c], 0
mov dword [edi + 0x41a], 0
mov dword [edi + 0x43e], 0
mov dword [edi + 0x488], 0
mov dword [edi + 0x472], 0
mov byte [edi + 0x4d2], 0
mov byte [edi + 0x4a8], 0
mov dword [edi + 0x39a], 0
mov dword [edi + 0x3a2], 0
call esi
mov dword [edi + 0x3de], eax
call esi
mov dword [edi + 0x3e2], eax
mov dword [edi + 0x454], 0
mov dword [edi + 0x44c], 0
mov word [edi + 0x4a9], 0
mov byte [edi + 0x480], 0
mov dword [edi + 0x442], 0
mov dword [edi + 0x3a6], 0
mov word [edi + 0x4c0], 0
mov dword [edi + 0x41e], 0
mov word [edi + 0x4bc], 1
mov word [edi + 0x4b8], 0
mov byte [edi + 0x4b4], 6
mov byte [edi + 0x4b7], 0
call esi
mov dword [edi + 0x3f2], eax
mov dword [edi + 0x448], 0
mov byte [edi + 0x4d4], 0
call esi
inc dword [edi + 0x3e6]
mov dword [edi + 0x3f6], eax
xor eax, eax
mov dword [edi + 0x4c6], eax
mov dword [edi + 0x3ea], eax
mov dword [edi + 0x3fe], eax
mov word [edi + 0x4af], ax
mov word [edi + 0x4d0], ax
mov dword [edi + 0x412], eax
mov dword [edi + 0x416], eax
mov dword [edi + 0x41e], eax
mov byte [edi + 0x4b6], al
mov eax, dword [edi + 0x45c]
mov dword [edi + 0x3fa], 0
mov byte [edi + 0x4d3], 1
test eax, eax
je 0x406042
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x45c], 0
mov ecx, dword [edi + 0x402]
test ecx, ecx
je 0x40605b
call fcn.0040e4a0
mov dword [edi + 0x402], 0
mov ecx, dword [edi + 0x406]
test ecx, ecx
je 0x406074
call fcn.0040e4a0
mov dword [edi + 0x406], 0
mov ecx, dword [edi + 0x6aa]
cmp dword [ecx + 8], 0
je 0x40608a
push 0xffffffffffffffff
push 0
call dword [sym.imp.mfc140u.dll_CByteArray::SetSize]
cmp dword [edi + 0x6ae], 0
jne 0x40609e
call fcn.00401e60
mov dword [edi + 0x6ae], eax
mov eax, dword [edi + 0x6ae]
test eax, eax
je 0x405d6b
push 0x186a0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov al, byte [edi + 0x4ae]
add esp, 0xc
mov dword [edi + 0x3fe], 0
cmp al, 1
ja 0x4060e4
push 2
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, 0x4a2aac
jmp 0x406112
cmp al, 2
jne 0x4060fc
push 2
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, 0x4a2a78
jmp 0x406112
cmp al, 3
jne 0x406122
push 2
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, 0x4a2a44
mov edx, 0x2713
call fcn.0040e400
mov dword [edi + 0x402], eax
cmp dword [edi + 0x402], 0
je 0x405d6b
inc dword [edi + 0x3fe]
lea ecx, [ebp - 0x83c]
mov esi, dword [sym.imp.mfc140u.dll_CByteArray::CByteArray]
xorps xmm0, xmm0
movups xmmword [ebp - 0x83c], xmm0
mov dword [ebp - 0x82c], 0
call esi
mov dword [ebp - 4], 2
push dword [edi + 4]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
push 4
lea edx, [ebp - 0x894]
mov dword [ebp - 0x894], eax
lea ecx, [ebp - 0x83c]
call fcn.00401d60
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call edi
push 4
lea edx, [ebp - 0x894]
mov dword [ebp - 0x894], eax
lea ecx, [ebp - 0x83c]
call fcn.00401d60
add esp, 4
push 0x4c1a
call edi
push 4
lea edx, [ebp - 0x894]
mov dword [ebp - 0x894], eax
lea ecx, [ebp - 0x83c]
call fcn.00401d60
push 4
lea edx, [ebp - 0x894]
lea ecx, [ebp - 0x83c]
call fcn.00401d60
mov eax, dword [ebp - 0x898]
mov edx, 1
push 0xb4
mov al, byte [eax + 0x4ae]
cmp al, dl
movzx ecx, al
cmovbe ecx, edx
mov edx, 0x4a1568
mov byte [0x4a156c], cl
lea ecx, [ebp - 0x83c]
call fcn.00401d60
add esp, 0xc
mov dword [ebp - 0x848], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x858]
movups xmmword [ebp - 0x858], xmm0
call esi
mov byte [ebp - 4], 3
lea edx, [ebp - 0x8a8]
push 0xe
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x8a8], 0x5a00
mov dword [ebp - 0x8a4], 0
mov dword [ebp - 0x8a0], 0xffff0700
mov word [ebp - 0x89c], 0x1000
call fcn.00401d60
mov eax, dword [ebp - 0x834]
add esp, 4
mov esi, dword [sym.imp.WS2_32.dll_htons]
add eax, 2
push eax
call esi
movzx eax, ax
lea edx, [ebp - 0x894]
push 2
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x894], eax
call fcn.00401d60
push dword [ebp - 0x834]
mov edx, dword [ebp - 0x838]
lea ecx, [ebp - 0x858]
call fcn.00401d60
mov ecx, dword [ebp - 0x898]
lea eax, [ebp - 0x814]
add esp, 8
mov dword [ebp - 0x814], 0
push eax
lea eax, [ebp - 0x14a8]
push eax
lea eax, [ecx + 0x10c]
push eax
push dword [ebp - 0x850]
push dword [ebp - 0x854]
call fcn.00402620
xorps xmm0, xmm0
mov dword [ebp - 0x818], 0
lea ecx, [ebp - 0x828]
movups xmmword [ebp - 0x828], xmm0
call dword [sym.imp.mfc140u.dll_CByteArray::CByteArray]
push 0x4c1a
mov byte [ebp - 4], 4
call esi
movzx eax, ax
lea edx, [ebp - 0x894]
push 2
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x894], eax
call fcn.00401d60
mov esi, dword [sym.imp.mfc140u.dll_CByteArray::SetAtGrow]
lea ecx, [ebp - 0x828]
add esp, 4
push 0xff
push dword [ebp - 0x820]
call esi
push 0xff
push dword [ebp - 0x820]
lea ecx, [ebp - 0x828]
call esi
push 0
push dword [ebp - 0x820]
lea ecx, [ebp - 0x828]
call esi
push 0
push dword [ebp - 0x820]
lea ecx, [ebp - 0x828]
call esi
push 0
push dword [ebp - 0x820]
lea ecx, [ebp - 0x828]
call esi
push 1
push dword [ebp - 0x820]
lea ecx, [ebp - 0x828]
call esi
mov eax, dword [ebp - 0x898]
push dword [eax + 4]
call edi
push 4
lea edx, [ebp - 0x894]
mov dword [ebp - 0x894], eax
lea ecx, [ebp - 0x828]
call fcn.00401d60
add esp, 4
lea ecx, [ebp - 0x828]
push 1
push dword [ebp - 0x820]
call esi
push 0x78
push dword [ebp - 0x820]
lea ecx, [ebp - 0x828]
call esi
mov esi, dword [ebp - 0x898]
lea ecx, [ebp - 0x828]
push 0x78
lea edx, [esi + 0x11c]
call fcn.00401d60
push dword [ebp - 0x814]
lea edx, [ebp - 0x14a8]
lea ecx, [ebp - 0x828]
call fcn.00401d60
push 0xc00
push 0
lea eax, [ebp - 0x14a8]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
mov dword [ebp - 0x85c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x86c]
movups xmmword [ebp - 0x86c], xmm0
call dword [sym.imp.mfc140u.dll_CByteArray::CByteArray]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x820]
add eax, 4
push eax
call edi
push 4
lea edx, [ebp - 0x894]
mov dword [ebp - 0x894], eax
lea ecx, [ebp - 0x86c]
call fcn.00401d60
push dword [ebp - 0x820]
mov edx, dword [ebp - 0x824]
lea ecx, [ebp - 0x86c]
call fcn.00401d60
mov ecx, dword [esi + 0x402]
add esp, 8
xor edi, edi
test ecx, ecx
je 0x4064bc
mov edx, dword [ebp - 0x868]
sub esp, 0xc
push dword [ebp - 0x864]
call fcn.0040e480
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov esi, dword [reloc.mfc140u.dll_CByteArray::CByteArray]
lea ecx, [ebp - 0x86c]
call esi
lea ecx, [ebp - 0x828]
call esi
lea ecx, [ebp - 0x858]
call esi
lea ecx, [ebp - 0x83c]
call esi
mov eax, edi
jmp 0x405d6d