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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x3a4]
push edx
xor ebx, ebx
push eax
mov dword [ebp - 0x38c], ebx
call dword [ecx + 0x1c]
cmp dword [ebp - 0x3a0], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jl 0x104a365
cmp dword [esi + 0x34], ebx
je 0x104a381
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x104a375
push eax
call edi
mov dword [esi + 0x28], ebx
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x38c], eax
mov eax, dword [ebp - 0x3a4]
sub eax, ebx
je 0x104a495
dec eax
je 0x104a481
dec eax
je 0x104a43f
dec eax
je 0x104a3e7
dec eax
je 0x104a3d3
dec eax
je 0x104a3b5
mov dword [ebp - 0x388], 0x2779
jmp 0x104a4bb
push 0x1006bcc
push 4
mov dword [ebp - 0x388], 0x2778
call fcn.01055bad
mov dword [esi + 0x30], ebx
jmp 0x104a4bb
mov dword [ebp - 0x388], 0x2777
push 0x1006bc0
jmp 0x104a4b4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24]
cmp eax, 0x2710
jbe 0x104a42e
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x388], 0x277a
cmp eax, ebx
je 0x104a411
push eax
call edi
mov dword [esi + 0x28], ebx
push 0x1006b90
mov eax, 0x80072efd
mov dword [ebp - 0x38c], eax
mov dword [ebp - 0x3a0], eax
push 2
jmp 0x104a4b6
mov dword [ebp - 0x388], 0x2775
push 0x1006b80
jmp 0x104a4b4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24]
cmp eax, 0x2710
jbe 0x104a470
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x388], 0x277a
cmp eax, ebx
je 0x104a469
push eax
call edi
mov dword [esi + 0x28], ebx
push 0x1006b58
jmp 0x104a416
mov dword [ebp - 0x388], 0x2776
push 0x1006b4c
jmp 0x104a4b4
mov dword [ebp - 0x388], 0x277a
mov dword [esi + 0x30], ebx
push 0x1006b44
jmp 0x104a4b4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24]
cmp eax, 0x2710
ja 0x104a44f
mov dword [ebp - 0x388], 0x2774
push 0x1006b38
push 4
call fcn.01055bad
cmp dword [ebp - 0x3a0], ebx
je 0x104a4e4
push dword [ebp - 0x3a0]
push 0x1006af8
push 2
call fcn.01055c8a
add esp, 0xc
push dword [ebp - 0x3a0]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x39c]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov esi, 0x100
cmp eax, 0xffffffff
jne 0x104a5f3
lea ebx, [esi - 0x80]
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x26e8
push dword [0x1073960]
call edi
test eax, eax
jne 0x104a52c
push 0x1005db8
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01035831
xor ebx, ebx
push esi
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 0x388]
push dword [0x1073960]
call edi
test eax, eax
je 0x104a62b
cmp dword [ebp - 0x388], 0x2777
lea eax, [ebp - 0x384]
jne 0x104a625
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x104a565
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x104]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x104a57e
sub eax, edx
sar eax, 1
lea esi, [eax + ecx + 0x21]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x104a62b
push dword [ebp - 0x398]
lea eax, [ebp - 0x184]
push 0x40
push eax
call fcn.010580d2
test eax, eax
jl 0x104a5ea
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x384]
push eax
push esi
push edi
call fcn.0103592d
add esp, 0x14
push edi
call fcn.01055264
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x104a62b
sub eax, dword [ebp - 0x398]
xor edx, edx
cmp dword [ebp - 0x394], ebx
jbe 0x104a61c
div dword [ebp - 0x394]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.0105aa80
jmp 0x104a52e
mov ecx, 0x3e80
div ecx
jmp 0x104a609
push eax
call fcn.01055264
mov ecx, dword [ebp - 0x39c]
pop edi
pop esi
cmp ecx, ebx
pop ebx
jne 0x104a63b
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x398]
imul eax, eax, 0x64
xor edx, edx
div ecx
push eax
call fcn.0105522c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38c]
xor ecx, ebp
call fcn.01047480
leave
ret