Function at 0x40f690
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x4518bf
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov esi, ecx
push 0x17
xor edi, edi
push 0x4585e8
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
call fcn.00405b30
mov dword [esp + 0x158], edi
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call edx
or edi, 0xffffffff
mov ebp, 0x10
mov dword [esp + 0x158], edi
cmp dword [esp + 0x48], ebp
jb 0x40f718
mov eax, dword [esp + 0x34]
push eax
call fcn.00433d63
add esp, 4
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
lea ecx, [esp + 0x4c]
push 0x458600
push ecx
mov dword [esp + 0x160], 1
call fcn.004073a0
add esp, 8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0x158], 2
cmp dword [eax + 0x18], ebp
jb 0x40f762
mov eax, dword [eax + 4]
jmp 0x40f765
add eax, 4
push eax
push str.CClientBase::CopyFileToTheFolder
push 0x4ef
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x40f799
mov eax, dword [esp + 0x18]
push eax
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x158], edi
call fcn.00404450
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
push esi
call fcn.00413520
call sub.KERNEL32.dll_GetTickCount
push 0xbb8
mov dword [esi + 0x4454], eax
call fcn.00421280
add esp, 4
lea edx, [esi + 0x1834]
push edx
lea edi, [esi + 0x1434]
push edi
lea ebx, [esi + 0x1034]
push ebx
call fcn.0040aca0
test eax, eax
jne 0x40f8c8
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
mov dword [esp + 0x158], 3
call sub.WS2_32.dll_WSAGetLastError
push eax
push ecx
lea eax, [esp + 0x54]
push 0x45864c
push eax
call fcn.004073a0
add esp, 0xc
mov ecx, eax
call fcn.00414f90
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0x158], 4
cmp dword [eax + 0x18], ebp
jb 0x40f85f
mov eax, dword [eax + 4]
jmp 0x40f862
add eax, 4
push eax
push str.CClientBase::CopyFileToTheFolder
push 0x4f8
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x40f896
mov edx, dword [esp + 0x18]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x158], 0xffffffff
call fcn.00404450
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
call sub.KERNEL32.dll_GetTickCount
mov ecx, edi
mov dword [esi + 0x4454], eax
call fcn.0040ede0
test eax, eax
jne 0x40f9a3
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
mov dword [esp + 0x158], 5
call sub.WS2_32.dll_WSAGetLastError
push eax
push ecx
lea ecx, [esp + 0x54]
push 0x45867c
push ecx
call fcn.004073a0
add esp, 0xc
mov ecx, eax
call fcn.00414f90
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0x158], 6
cmp dword [eax + 0x18], ebp
jb 0x40f93a
mov eax, dword [eax + 4]
jmp 0x40f93d
add eax, 4
push eax
push str.CClientBase::CopyFileToTheFolder
push 0x4fe
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x40f971
mov eax, dword [esp + 0x18]
push eax
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x158], 0xffffffff
call fcn.00404450
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
call sub.KERNEL32.dll_GetTickCount
push esi
mov edx, edi
mov ecx, ebx
mov dword [esi + 0x4454], eax
call fcn.0040dae0
test eax, eax
jne 0x40fa81
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
mov dword [esp + 0x158], 7
call sub.WS2_32.dll_WSAGetLastError
push eax
push ecx
lea edx, [esp + 0x54]
push 0x4586a0
push edx
call fcn.004073a0
add esp, 0xc
mov ecx, eax
call fcn.00414f90
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0x158], 8
cmp dword [eax + 0x18], ebp
jb 0x40fa18
mov eax, dword [eax + 4]
jmp 0x40fa1b
add eax, 4
push eax
push str.CClientBase::CopyFileToTheFolder
push 0x504
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x40fa4f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x158], 0xffffffff
call fcn.00404450
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
call sub.KERNEL32.dll_GetTickCount
lea edi, [esi + 0x2034]
mov ecx, ebx
mov dword [esi + 0x4454], eax
call fcn.0040e710
test eax, eax
jne 0x40fb62
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.00404370
mov dword [esp + 0x158], 9
call sub.WS2_32.dll_WSAGetLastError
push eax
push ecx
lea eax, [esp + 0x54]
push 0x4586c0
push eax
call fcn.004073a0
add esp, 0xc
mov ecx, eax
call fcn.00414f90
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x50]
call fcn.004044d0
mov byte [esp + 0x158], 0xa
cmp dword [eax + 0x18], ebp
jb 0x40faf9
mov eax, dword [eax + 4]
jmp 0x40fafc
add eax, 4
push eax
push str.CClientBase::CopyFileToTheFolder
push 0x50a
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x40fb30
mov edx, dword [esp + 0x18]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x158], 0xffffffff
call fcn.00404450
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
call sub.KERNEL32.dll_GetTickCount
mov dword [esi + 0x4454], eax
lea eax, [esi + 0x1434]
push eax
call fcn.004118b0
call sub.KERNEL32.dll_GetTickCount
push 1
push 2
lea ecx, [esp + 0xd4]
mov dword [esi + 0x4454], eax
call fcn.00404370
lea ecx, [esp + 0xcc]
push 0x4586e0
push ecx
mov dword [esp + 0x160], 0xb
call fcn.004073a0
add esp, 8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xd0]
call fcn.004044d0
mov byte [esp + 0x158], 0xc
cmp dword [eax + 0x18], ebp
jb 0x40fbd7
mov eax, dword [eax + 4]
jmp 0x40fbda
add eax, 4
push eax
push str.CClientBase::CopyFileToTheFolder
push 0x511
push str..ClientBase.cpp
push 0x2002
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x2c], ebp
jb 0x40fc0e
mov eax, dword [esp + 0x18]
push eax
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x118]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x158], 0xffffffff
call fcn.00404450
lea ecx, [esp + 0x118]
push ecx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret