Function at 0x42a0d4
Capabilities:
Check for time delay via gettickcount
Check if file exists
Create directory
Create thread
Get file attributes
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42db2c
mov eax, dword fs:[0]
push eax
mov eax, 0x5084
call fcn.00414640
mov eax, dword [0x43eec0]
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
lea eax, [ebp - 0x4e44]
push eax
mov esi, ecx
call fcn.00428fc3
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [eax]
push 0x437018
push eax
mov ecx, esi
call fcn.004043a2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4e44]
add ecx, 0xfffffff0
call fcn.00402479
push edi
call fcn.004124fd
pop ecx
mov dword [esi + 0xf8], eax
mov eax, dword [ebp + 8]
lea ebx, [esi + 0xa4]
mov ecx, ebx
mov dword [esi + 0xfc], edx
call fcn.0040184c
push eax
lea ecx, [ebp - 0x4e68]
call fcn.004020b3
mov eax, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.0040184c
mov ecx, dword [eax + 8]
mov dword [esi + 0xd0], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xd4], eax
mov eax, ecx
mov dword [ebp - 0x4e58], eax
mov eax, dword [esi + 0xd4]
mov dword [ebp - 0x4e54], eax
mov eax, dword [ebp + 8]
mov ecx, ebx
call fcn.0040184c
push dword [ebp + 8]
mov ebx, dword [eax + 4]
push str.CMainApp::DownloadFile:
mov dword [ebp - 0x4e80], ebx
call fcn.00428c4d
push dword [ebp - 0x4e68]
push str.....file_name:
call fcn.00428cd7
push dword [ebp - 0x4e58]
push str.....file_size:
call fcn.00428c4d
push ebx
push str.....file_time:
call fcn.00428c4d
push dword [ebp + 0xc]
push str.....file_last_block:
call fcn.00428c4d
add esp, 0x28
cmp ebx, edi
jne 0x42a22f
inc edi
mov ecx, dword [ebp - 0x4e68]
add ecx, 0xfffffff0
call fcn.00402479
mov eax, edi
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.00411d1d
leave
ret 8
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x42cbe2
push 0x42cc23
push 0xa
mov dword [ebp - 0x4e5c], eax
push 0x30
lea eax, [ebp - 0x5090]
push eax
call fcn.0041304f
lea eax, [ebp - 0x4e68]
push eax
lea eax, [esi + 0xec]
push eax
lea eax, [ebp - 0x4e4c]
push eax
mov byte [ebp - 4], 2
call fcn.0040142d
add esp, 0xc
mov byte [ebp - 4], 3
push dword [ebp - 0x4e4c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42a293
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
push dword [esi + 0x114]
mov ebx, dword [esi + 0x110]
mov dword [ebp - 0x4e64], eax
mov dword [ebp - 0x4e44], eax
cdq
push ebx
push edx
push eax
mov dword [esi + 0x124], edi
mov dword [ebp - 0x4e78], eax
mov dword [ebp - 0x4e74], edx
call fcn.004165b0
push dword [esi + 0x114]
mov dword [esi + 0xc0], eax
mov ecx, dword [esi + 0xc0]
push ebx
push dword [ebp - 0x4e54]
lea eax, [esi + 0x108]
add dword [eax], ecx
push dword [ebp - 0x4e58]
mov ecx, edx
adc dword [eax + 4], ecx
mov dword [esi + 0xc4], edx
call fcn.00423020
or ecx, ebx
je 0x42a309
add eax, 1
adc edx, edi
push eax
push str.....total_blocks:
mov dword [ebp - 0x4e54], edx
mov dword [ebp - 0x4e58], eax
call fcn.00428c4d
push dword [ebp - 0x4e4c]
lea eax, [ebp - 0x4e38]
push eax
call fcn.00429daf
mov eax, dword [eax]
add esp, 0x10
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 0x4e38]
add ecx, 0xfffffff0
call fcn.00402479
push edi
push 0x80000000
cmp dword [ebp + 0xc], edi
jne 0x42a371
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x4e4c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x42a3ac
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
push edi
push 1
push 0x40000000
push dword [ebp - 0x4e4c]
call ebx
mov dword [ebp - 0x4e48], eax
cmp eax, 0xffffffff
jne 0x42a409
push edi
push 0x80000000
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x4e4c]
call ebx
mov dword [ebp - 0x4e48], eax
cmp eax, 0xffffffff
jne 0x42a409
push 1
push 0x437100
push str.Cant_create_file_or_open_it_for_appending
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x42a3dd
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x4e4c]
add ecx, 0xfffffff0
call fcn.00402479
push 0x42cbe2
push 0xa
push 0x30
lea eax, [ebp - 0x5090]
push eax
mov byte [ebp - 4], 1
call fcn.00413112
jmp 0x42a203
xor ecx, ecx
lea eax, [ebp - 0x5064]
mov edx, dword [eax]
mov dword [ebp + ecx*4 - 0x4eac], edx
inc ecx
add eax, 0x30
cmp ecx, 0xa
jl 0x42a411
mov eax, dword [ebp - 0x4e54]
cmp dword [ebp - 0x4e74], eax
mov dword [esi + 0xb8], 3
mov dword [esi + 0x100], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
jg 0x42a9c5
jl 0x42a465
mov eax, dword [ebp - 0x4e58]
cmp dword [ebp - 0x4e78], eax
jae 0x42a9c5
cmp dword [esi + 0xb8], edi
mov dword [ebp - 0x4e34], edi
jle 0x42a5c1
lea ebx, [ebp - 0x508c]
cmp dword [ebx], edi
je 0x42a5a6
mov eax, dword [ebp - 0x4e64]
cdq
cmp edx, dword [ebp - 0x4e54]
jg 0x42a5a6
jl 0x42a4a6
cmp eax, dword [ebp - 0x4e58]
jae 0x42a5a6
push dword [ebp - 0x4e34]
push str.Starting_Thread:
call fcn.00428c4d
mov eax, dword [ebp - 0x4e64]
pop ecx
pop ecx
push dword [ebx + 0x28]
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x10], eax
mov dword [ebx - 4], esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 0x507c]
push 9
mov dword [ebp - 0x4e3c], eax
lea eax, [ebp - 0x504c]
pop edx
cmp dword [eax - 0x10], edi
jne 0x42a4fc
mov ecx, dword [eax]
cmp dword [ebp - 0x4e3c], ecx
jl 0x42a4fc
mov dword [ebp - 0x4e3c], ecx
add eax, 0x30
dec edx
jne 0x42a4e7
lea eax, [ebp - 0x4e7c]
push eax
call fcn.00428fc3
push dword [ebp - 0x4e3c]
mov byte [ebp - 4], 4
mov eax, dword [eax]
push 0x437188
push eax
mov ecx, esi
call fcn.004043a2
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4e7c]
add ecx, 0xfffffff0
call fcn.00402479
inc dword [ebp - 0x4e64]
lea eax, [ebp - 0x4e68]
push eax
lea ecx, [ebx + 0x14]
call fcn.0040213e
cmp dword [ebx + 8], edi
jne 0x42a566
mov eax, dword [esi + 0x110]
add eax, 0x64
push eax
call fcn.00402ad4
pop ecx
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x110]
add eax, 0x64
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x4e5c]
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 0x4e5c]
mov dword [ebx + 0x20], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
lea eax, [ebx - 4]
push eax
push 0x429d9e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x24], eax
inc dword [ebp - 0x4e34]
mov eax, dword [ebp - 0x4e34]
add ebx, 0x30
cmp eax, dword [esi + 0xb8]
jl 0x42a47d
push 0x1f4
push edi
lea eax, [ebp - 0x4eac]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x4e3c], eax
cmp eax, 0x102
jne 0x42a5ee
push str.Wait_timeout
call fcn.00428d61
pop ecx
xor ecx, ecx
xor edx, edx
lea eax, [ebp - 0x5070]
mov dword [ebp - 0x4e38], 0xa
cmp dword [eax - 0x1c], edi
jne 0x42a60d
mov ebx, dword [eax]
add ecx, ebx
adc edx, edi
add eax, 0x30
dec dword [ebp - 0x4e38]
jne 0x42a602
mov dword [esi + 0xc8], ecx
mov dword [esi + 0xcc], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4e38], eax
sub eax, dword [0x442ef0]
cmp eax, 0x1388
jb 0x42a6f4
push 0x4371ac
lea ecx, [ebp - 0x4e6c]
call fcn.004026c6
lea eax, [ebp - 0x5070]
mov byte [ebp - 4], 5
mov dword [ebp - 0x4e40], edi
mov dword [ebp - 0x4e34], eax
mov eax, dword [ebp - 0x4e34]
mov ebx, str.inactive
cmp dword [eax - 0x1c], edi
jne 0x42a67c
mov ebx, str.active
mov ecx, dword [ebp - 0x4e34]
mov eax, dword [ecx]
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x4e38]
sub eax, dword [ecx + 4]
xor edx, edx
mov ecx, 0x3e8
div ecx
push eax
push ebx
push dword [ebp - 0x4e40]
lea ebx, [ebp - 0x4e6c]
push str.thread__d:__s___started__d_sec___downloaded__d_Kb_r_n
call fcn.0040204e
add dword [ebp - 0x4e34], 0x30
add esp, 0x14
inc dword [ebp - 0x4e40]
cmp dword [ebp - 0x4e40], 5
jl 0x42a667
push dword [ebp - 0x4e6c]
call fcn.00428d61
mov eax, dword [ebp - 0x4e38]
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4e6c]
add ecx, 0xfffffff0
mov dword [0x442ef0], eax
call fcn.00402479
cmp dword [esi + 0x104], edi
jne 0x42aa7e
cmp dword [ebp - 0x4e3c], 0x102
je 0x42a9a4
push str.Some_blocks_are_ready
call fcn.00428d61
pop ecx
mov dword [ebp - 0x4e34], edi
lea ebx, [ebp - 0x5070]
cmp dword [ebx - 0x18], edi
je 0x42a98e
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4e34]
mov dword [ebx - 0x18], edi
push str.Finishing_Thread:
call fcn.00428c4d
pop ecx
pop ecx
mov ecx, dword [ebx]
cmp ecx, 8
jb 0x42a969
mov eax, dword [ebx - 0x14]
mov edx, dword [eax]
mov dword [ebp - 0x4e38], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x4e3c], edx
cmp ecx, 0xc
jb 0x42a78e
mov eax, dword [eax + 8]
push eax
push str.New_stream_num:
mov dword [ebp - 0x4e84], eax
mov dword [esi + 0xb8], eax
call fcn.00428c4d
pop ecx
pop ecx
cmp dword [esi + 0xb8], 0xa
jle 0x42a7a1
mov dword [esi + 0xb8], 5
push dword [ebp - 0x4e38]
push str.CRC32:
call fcn.00428c4d
push dword [ebp - 0x4e3c]
push str.Time:
call fcn.00428c4d
push dword [ebp - 0x4e84]
push str.Streams_num:
call fcn.00428c4d
mov eax, dword [ebx]
add esp, 0x18
lea ecx, [eax - 0xc]
mov dword [ebp - 0x4e40], ecx
cmp dword [ebp - 0x4e3c], edi
jne 0x42a81c
cmp eax, 8
jne 0x42a80c
push edi
push 0x4372e8
push str.There_is_a_problem_with_files_on_server._Please_contact_support
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push str.Wrong_time
call fcn.00428d61
pop ecx
jmp 0x42a969
cmp dword [ebp - 0x4e40], edi
jbe 0x42a98e
mov ecx, dword [ebx - 0x14]
push dword [ebp - 0x4e40]
add ecx, 0xc
call fcn.00428a1e
pop ecx
mov dword [ebp - 0x4e60], eax
cmp eax, dword [ebp - 0x4e38]
jne 0x42a93b
mov eax, dword [ebp - 0x4e80]
cmp dword [ebp - 0x4e3c], eax
jne 0x42aaa2
push dword [esi + 0x114]
mov eax, dword [ebx - 0xc]
push dword [esi + 0x110]
cdq
push edx
push eax
call fcn.004165b0
push edi
push edi
push edx
push eax
push dword [ebp - 0x4e48]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
lea eax, [ebp - 0x4e74]
push eax
push dword [ebp - 0x4e40]
mov eax, dword [ebx - 0x14]
add eax, 0xc
push eax
push dword [ebp - 0x4e48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
jne 0x42a8f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0x2710
lea ecx, [ebp - 0x4e30]
push ecx
push edi
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 5
push 0x4374c8
lea eax, [ebp - 0x4e30]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x42a885
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x42a885
push dword [ebp - 0x4e48]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
inc dword [ebp - 0x4e44]
mov eax, dword [ebp - 0x4e40]
add dword [esi + 0xc0], eax
mov eax, dword [ebx]
push dword [ebx + 0xc]
adc dword [esi + 0xc4], edi
sub dword [esi + 0xc8], eax
mov dword [ebx - 0x1c], 1
mov dword [ebx], edi
sbb dword [esi + 0xcc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x42a98e
push str.Wrong_CRC
call fcn.00428d61
pop ecx
push dword [ebp - 0x4e38]
push str.CRC_received:
call fcn.00428c4d
push dword [ebp - 0x4e60]
push str.CRC_calculated:
call fcn.00428c4d
add esp, 0x10
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
push edi
lea eax, [ebx - 0x20]
push eax
push 0x429d9e
push edi
push edi
mov dword [ebx - 0x1c], edi
mov dword [ebx - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 8], eax
inc dword [ebp - 0x4e34]
add ebx, 0x30
cmp dword [ebp - 0x4e34], 0xa
jl 0x42a727
mov eax, dword [ebp - 0x4e44]
cdq
cmp edx, dword [ebp - 0x4e54]
jl 0x42a465
jg 0x42a9c5
cmp eax, dword [ebp - 0x4e58]
jb 0x42a465
push dword [ebp - 0x4e5c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x4e48]
call edi
push dword [ebp + 8]
push str.File_downloaded:
call fcn.00428c4d
pop ecx
pop ecx
call fcn.00403cbe
push eax
lea ecx, [ebp - 0x4e44]
call fcn.00402274
push dword [ebp + 8]
lea eax, [ebp - 0x4e44]
push 0x437548
push eax
mov byte [ebp - 4], 7
call fcn.0040203b
add esp, 0xc
lea eax, [ebp - 0x4e60]
push eax
call fcn.00428fc3
mov byte [ebp - 4], 8
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
lea edi, [esi + 0xa4]
mov ecx, edi
call fcn.0040184c
push dword [eax + 4]
mov ecx, esi
push dword [ebp - 0x4e44]
push ebx
call fcn.004043a2
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x4e60]
add ecx, 0xfffffff0
call fcn.00402479
mov eax, dword [ebp + 8]
mov ecx, edi
call fcn.0040184c
mov ecx, dword [ebp - 0x4e44]
xor edi, edi
inc edi
add ecx, 0xfffffff0
mov dword [eax + 0x10], edi
call fcn.00402479
jmp 0x42a3dd
xor edi, edi
inc edi
mov dword [esi + 0x100], edi
push dword [ebp - 0x4e5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4e48]
call esi
jmp 0x42a3dd
push edi
push str.Warning
push str.There_were_new_files_posted_to_the_server__r_nwhile_you_have_been_downloading_your_files._r_nThis_utility_will_redownload_new_files_now
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.Time_changed
call fcn.00428d61
mov eax, dword [ebp + 8]
pop ecx
lea ecx, [esi + 0xa4]
call fcn.0040184c
mov ecx, dword [ebp - 0x4e3c]
mov dword [eax + 4], ecx
lea eax, [ebp - 0x4e60]
push eax
call fcn.00428fc3
push edi
mov byte [ebp - 4], 6
mov eax, dword [eax]
push 0x4374c0
push eax
mov ecx, esi
call fcn.004043a2
mov ecx, dword [ebp - 0x4e60]
add ecx, 0xfffffff0
call fcn.00402479
push 0xa
mov dword [esi + 0x100], 1
lea esi, [ebp - 0x5068]
pop ebx
cmp dword [esi - 0x24], edi
jne 0x42ab26
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 0x30
dec ebx
jne 0x42ab17
jmp 0x42aa87