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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x180]
mov ecx, 0x60
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xf8]
cmp dword [ecx + 0xb8], 0
je 0x41c4cc
mov al, 1
jmp 0x41c919
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xb0]
mov dword [ebp - 0x44], ecx
jmp 0x41c4f1
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x41c50e
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x34]
adc edx, dword [eax + 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
jmp 0x41c4e8
mov ecx, dword [ebp - 8]
add ecx, 0x48
call fcn.00415550
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x5c], 0x8000
cmp dword [ebp - 0x50], 0xf000
jbe 0x41c535
mov dword [ebp - 0x5c], 0x40000
jmp 0x41c557
cmp dword [ebp - 0x50], 0xa000
jbe 0x41c547
mov dword [ebp - 0x5c], 0x20000
jmp 0x41c557
cmp dword [ebp - 0x50], 0x5000
jbe 0x41c557
mov dword [ebp - 0x5c], 0x10000
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x178]
ja 0x41c917
jb 0x41c588
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x17c]
jae 0x41c917
mov esi, esp
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xf8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xf8]
mov edx, dword [ecx]
mov ecx, eax
call dword [edx + 4]
cmp esi, esp
call fcn.0043234a
movzx eax, al
test eax, eax
je 0x41c910
push 0
push 0x40000
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004337f0
push 0
push 0x40000
push edx
push eax
call fcn.00433f00
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x14]
sbb eax, dword [ebp - 0x68]
add edx, dword [ebp - 0x28]
adc eax, dword [ebp - 0x24]
push eax
push edx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
sbb edx, dword [ebp - 0x68]
push edx
push ecx
push 0
push 0x40000
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004337f0
push edx
push eax
push str.send_data_block_request:_block___I64i___I64i__I64i___I64i__n
push 4
push 0x462328
call fcn.00401280
add esp, 0x2c
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
call fcn.00402190
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ecx + 4]
add ecx, dword [eax + 0xc]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00405b30
push 0xefbeadde
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
push 0xe3
lea ecx, [ebp - 0x8c]
call fcn.00402c00
lea ecx, [ebp - 0x8c]
call fcn.00402830
push 0
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
push 0x47
lea ecx, [ebp - 0x8c]
call fcn.00402c00
push 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xf8]
add ecx, 8
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00402690
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004331eb
push eax
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
push 0
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
push 0
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
adc ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.004331eb
push eax
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
push 0
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
push 0
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
lea ecx, [ebp - 0x8c]
call fcn.00405be0
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x8c]
call fcn.00402960
mov eax, dword [ebp - 0x98]
sub eax, 9
push eax
lea ecx, [ebp - 0x8c]
call fcn.00402cc0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x98]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xb4]
push edx
call fcn.00403440
add esp, 0x18
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0xb4], 0
je 0x41c7fb
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xb4]
mov edx, dword [ebp - 0xa4]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xb4]
mov dword [eax], edx
mov eax, dword [ebp - 0xa4]
mov dword [eax + 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xa4]
mov dword [eax + 0xb4], ecx
jmp 0x41c832
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xa4]
mov dword [eax + 0xb4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xa4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 0xa4]
mov dword [eax], 0
mov eax, dword [ebp - 0xa4]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0x80000
mov ecx, dword [ebp - 0x14]
adc ecx, 0
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xf8]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp - 0x178]
cmp ecx, dword [eax + 0x1c]
jb 0x41c89e
ja 0x41c87f
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x17c]
cmp eax, dword [edx + 0x18]
jbe 0x41c89e
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, esp
call fcn.0043234a
sub eax, 0xfa0
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0x18], eax
jmp 0x41c8b6
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, esp
call fcn.0043234a
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xb0]
mov dword [ebp - 0xb0], ecx
jmp 0x41c8d6
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xb0], 0
je 0x41c8f9
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x34]
adc edx, dword [eax + 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
jmp 0x41c8c7
push 0
mov ecx, dword [ebp - 8]
call fcn.00423600
movzx eax, al
test eax, eax
jne 0x41c90e
xor al, al
jmp 0x41c919
jmp 0x41c912
jmp 0x41c917
jmp 0x41c557
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x41c93e]
call fcn.0043236d
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x180
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret