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

Disassembly:
mov eax, 0x100a41ef
call fcn.1007c8b4
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 8]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.100786c1
mov byte [ebp - 0x14], 1
lea eax, [ebp + 8]
xor esi, esi
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.1003ba5c
cmp eax, dword [ebx]
jne 0x1005d456
push 2
pop esi
jmp 0x1005d703
lea eax, [ebp + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1005cca0
mov edi, dword [eax]
lea eax, [edi + 0x18]
cmp dword [edi + 0x120], esi
jne 0x1005d4bf
cmp dword [ebp + 0x14], esi
je 0x1005d54b
push esi
push esi
push 3
push esi
push 3
push connect
push eax
call dword [0x100d2bd0]
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp + 0x10], eax
je 0x1005d4b5
push esi
lea ecx, [ebp + 0x14]
push ecx
push 8
lea ecx, [edi + 0x13c]
push ecx
push eax
call dword [0x100d2bdc]
push dword [ebp + 0x10]
call dword [0x100d2bd8]
cmp dword [ebp + 0x14], 8
je 0x1005d6d6
mov eax, dword [edi + 0x168]
or eax, dword [edi + 0x16c]
jne 0x1005d4df
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x168], eax
mov dword [edi + 0x16c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x170], eax
mov eax, dword [ebp + 0xc]
add dword [edi + 0x148], eax
inc dword [edi + 0x14c]
mov eax, dword [edi + 0x138]
mov dword [edi + 0x174], esi
test eax, eax
jne 0x1005d532
cmp dword [edi + 0x120], esi
je 0x1005d703
lea eax, [edi + 0x18]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.1005d156
mov eax, dword [edi + 0x138]
test eax, eax
je 0x1005d703
cmp dword [edi + 0x18c], 1
lea eax, [edi + 0x18]
mov ecx, ebx
jne 0x1005d6fc
push 1
jmp 0x1005d6fd
push 1
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1005d62c
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea ecx, [ebp + 0x10]
push ecx
push 8
lea eax, [edi + 0x13c]
push eax
push dword [ebp + 8]
call dword [0x100d2bdc]
push 8
call fcn.1007c983
mov edx, eax
lea eax, [edi + 0x13c]
pop ecx
mov dword [edx], esi
mov dword [edx + 4], esi
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x1005d608
mov eax, dword [eax + 4]
cmp eax, esi
jne 0x1005d608
push edx
call fcn.1007c98c
mov dword [esp], 0x800
call fcn.1007c983
pop ecx
push esi
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x14], eax
push ecx
push 0x800
push eax
push dword [ebp + 8]
call dword [0x100d2bdc]
mov edx, dword [ebp + 0x14]
mov eax, 0x800
cmp dword [ebp + 0x10], eax
jne 0x1005d612
mov ecx, esi
inc ecx
cmp byte [ecx + edx], 0
jne 0x1005d5ed
cmp ecx, eax
jb 0x1005d5e1
inc ecx
cmp ecx, 0x7f8
jae 0x1005d608
mov eax, dword [ecx + edx]
mov ecx, dword [ecx + edx + 4]
mov dword [edi + 0x13c], eax
mov dword [edi + 0x140], ecx
mov dword [edi + 0x144], 8
push edx
call fcn.1007c98c
pop ecx
push esi
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1005d6c9
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x144]
cmp eax, 8
jb 0x1005d63f
push 8
pop eax
sub eax, ecx
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
lea eax, [edi + 0x13c]
add eax, ecx
push eax
call fcn.1007f300
mov eax, dword [ebp + 0x14]
add dword [edi + 0x144], eax
push 8
call fcn.1007c983
mov ecx, eax
add esp, 0x10
mov dword [ebp + 0x14], ecx
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov eax, dword [edi + 0x13c]
cmp eax, dword [ecx]
jne 0x1005d6c2
cmp dword [edi + 0x140], esi
jne 0x1005d6c2
mov eax, 0x800
cmp dword [ebp + 0xc], eax
jb 0x1005d6bc
mov edx, dword [ebp + 0x10]
mov ecx, esi
inc ecx
cmp byte [ecx + edx], 0
jne 0x1005d69e
cmp ecx, eax
jb 0x1005d692
inc ecx
cmp ecx, 0x7f8
jae 0x1005d6b9
mov eax, dword [ecx + edx]
mov ecx, dword [ecx + edx + 4]
mov dword [edi + 0x13c], eax
mov dword [edi + 0x140], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x144], esi
push ecx
call fcn.1007c98c
pop ecx
cmp dword [edi + 0x144], 8
jl 0x1005d4bf
lea eax, [edi + 0x18]
mov ecx, ebx
push eax
call fcn.1005d2e6
cmp eax, 0xffff
jne 0x1005d4bf
lea eax, [edi + 0x11c]
mov ecx, ebx
push eax
call fcn.1005da35
jmp 0x1005d703
push esi
push eax
call fcn.1005d725
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 4
call fcn.100784db
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10