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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x111127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x104ed5e
test byte [eax + 0x1c], 1
je 0x104ed5e
cmp byte [eax + 0x19], 4
jb 0x104ed5e
push 0x1004710
push 0x50
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebx + 0xa0]
xor eax, eax
imul ecx, ecx, 0x98
add ecx, dword [ebx + 0x9c]
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x40], 0
call fcn.0104b98f
cmp eax, esi
mov dword [ebp - 0x18], eax
jl 0x104f49f
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push dword [eax + 0x4c]
lea ecx, [eax + 0x3c]
push ecx
push dword [ebx + 0x74]
call fcn.010df5bc
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x104f49f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x4c]
test al, 8
je 0x104eddb
test al, 0x20
jne 0x104eddb
mov byte [ebp - 0x40], 1
lea esi, [ebx + 0x10]
push 0
mov ecx, esi
call fcn.010d19c5
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x104f49f
push 0
push 0
push dword [ebx + 0xc8]
push dword [ebp - 0x30]
call fcn.010d35d9
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x104ee4c
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x104f49f
test byte [eax + 0x1c], 1
je 0x104f49f
cmp byte [eax + 0x19], 2
jb 0x104f49f
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push 0x1004710
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x104f49f
mov ecx, esi
call fcn.010d1b11
push 1
push 3
mov ecx, ebx
call fcn.0104e0e3
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call fcn.0107d073
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x104f49f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
cmp dword [ebx + 0xd8], edi
jne 0x104f001
push edi
push edi
push edi
push edi
mov ecx, ebx
call fcn.0104c3de
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x104eec7
test byte [eax + 0x1c], 1
je 0x104eec7
cmp byte [eax + 0x19], 4
jb 0x104eec7
push dword [ebx + 0xa0]
push dword [ebp - 0x20]
push 0x1004710
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov ecx, ebx
call fcn.0104bba4
cmp eax, edi
mov dword [ebp - 0x18], eax
jl 0x104f49f
mov eax, dword [ebp - 0x2c]
add eax, 0x8c
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
call fcn.010a8e43
mov edi, eax
test edi, edi
je 0x104ef32
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x104ef25
test byte [eax + 0x1c], 1
je 0x104ef25
cmp byte [eax + 0x19], 2
jb 0x104ef25
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x24]
push 0x1004710
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109b90b
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
push edi
jmp 0x104f362
mov eax, dword [0x111124c]
mov edi, 0x111124c
cmp eax, edi
je 0x104ef64
test byte [eax + 0x1c], 1
je 0x104ef64
cmp byte [eax + 0x19], 4
jb 0x104ef64
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push 0x1004710
push 0x54
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
call esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0xd8]
push eax
lea ecx, [ebx + 0x10]
call fcn.0101f639
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call fcn.010a708b
mov dword [ebp - 0x34], eax
call esi
sub eax, dword [ebp - 0x44]
lea ecx, [ebx + 0xe8]
add dword [ecx], eax
mov ecx, dword [ecx]
mov eax, dword [0x111124c]
cmp eax, edi
je 0x104efca
test byte [eax + 0x1c], 1
je 0x104efca
cmp byte [eax + 0x19], 4
jb 0x104efca
push ecx
push 0x1004710
push 0x55
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
mov eax, dword [0x111124c]
cmp dword [ebp - 0x34], 0
je 0x104f00b
cmp eax, edi
je 0x104f0ee
test byte [eax + 0x1c], 1
je 0x104f0ee
cmp byte [eax + 0x19], 2
jb 0x104f0ee
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x20]
push 0x1004710
push 0x56
jmp 0x104f0e3
mov eax, dword [0x111124c]
mov edi, 0x111124c
cmp eax, edi
je 0x104f033
test byte [eax + 0x1c], 1
je 0x104f033
cmp byte [eax + 0x19], 4
jb 0x104f033
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push 0x1004710
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
call esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x10]
call fcn.0101f639
push eax
push ebx
push 0x104d808
push dword [ebp - 0x30]
push dword [ebx + 0xd8]
call fcn.010a76c9
mov dword [ebp - 0x34], eax
call esi
sub eax, dword [ebp - 0x44]
add dword [ebx + 0xec], eax
mov eax, dword [0x111124c]
cmp eax, edi
je 0x104f0a0
test byte [eax + 0x1c], 1
je 0x104f0a0
cmp byte [eax + 0x19], 4
jb 0x104f0a0
push dword [ebx + 0xe8]
push 0x1004710
push 0x58
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
push dword [ebp - 0x50]
mov ecx, ebx
push dword [ebp - 0x54]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0104c3de
mov eax, dword [ebp - 0x34]
sub eax, 0
je 0x104f129
dec eax
je 0x104f0fd
mov eax, dword [0x111124c]
cmp eax, edi
je 0x104f0ee
test byte [eax + 0x1c], 1
je 0x104f0ee
cmp byte [eax + 0x19], 2
jb 0x104f0ee
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x20]
push 0x1004710
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109b90b
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x34]
jmp 0x104f362
lea ecx, [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
jne 0x104f11d
push 0x1004a20
push 0x919
push 0x1004728
call fcn.0107b4be
mov dword [ebp - 0x18], 0x8078001d
jmp 0x104f49f
mov eax, dword [ebx + 0xa8]
mov edx, dword [ebx + 0xb0]
imul eax, eax, 0x6c
push 4
lea edi, [eax + edx + 0x50]
pop ecx
lea esi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x104f237
cmp byte [ebp - 0x40], al
je 0x104f237
mov esi, dword [ebp - 0x2c]
push 8
mov ecx, esi
call fcn.0104c4d2
mov eax, dword [0x111124c]
mov edi, 0x111124c
cmp eax, edi
je 0x104f1b6
test byte [eax + 0x1c], 1
je 0x104f1b6
cmp byte [eax + 0x19], 3
jb 0x104f1b6
push dword [ebp - 8]
mov ecx, dword [ebx + 0xa8]
push dword [ebp - 0xc]
imul ecx, ecx, 0x6c
push dword [ebp - 0x10]
mov edx, dword [ebx + 0xb0]
push dword [ebp - 0x14]
add ecx, edx
push dword [ecx + 0x5c]
push dword [ecx + 0x58]
push dword [ecx + 0x54]
push dword [ecx + 0x50]
push 0x1004710
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104b859
lea eax, [ebp - 0x3c]
push eax
push 2
push dword [esi + 0x4c]
lea eax, [esi + 0x3c]
push eax
call fcn.010d6c57
test eax, eax
jge 0x104f1ef
mov ecx, dword [0x111124c]
cmp ecx, edi
je 0x104f23d
test byte [ecx + 0x1c], 1
je 0x104f23d
cmp byte [ecx + 0x19], 2
jb 0x104f23d
push eax
push dword [ebp - 0x20]
push 0x1004710
push 0x5b
jmp 0x104f22c
push dword [ebp - 0x3c]
lea esi, [ebx + 0x78]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010b9f91
test eax, eax
jge 0x104f237
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x104f23d
test byte [ecx + 0x1c], 1
je 0x104f23d
cmp byte [ecx + 0x19], 2
jb 0x104f23d
push eax
push dword [ebp - 0x3c]
push 0x1004710
push 0x5c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
mov ecx, dword [0x111124c]
mov eax, dword [ebx + 0xa8]
lea edx, [eax + 1]
cmp edx, dword [ebx + 0xac]
je 0x104f282
mov ecx, dword [ebx + 0xb0]
imul eax, eax, 0x6c
mov esi, dword [ebp - 0x2c]
push dword [esi + 0x4c]
add eax, ecx
lea ecx, [esi + 0x3c]
push ecx
push dword [eax + 0xa8]
add eax, 0x98
push eax
call fcn.0107e0e9
test al, al
jne 0x104f493
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x104f2b4
test byte [ecx + 0x1c], 1
je 0x104f2b4
cmp byte [ecx + 0x19], 4
jb 0x104f2b4
push dword [ebx + 0xa0]
mov edi, 0x1004710
push dword [ebp - 0x20]
push edi
push 0x5d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
jmp 0x104f2b9
mov edi, 0x1004710
mov ecx, dword [ebp - 0x2c]
lea esi, [ebx + 0xd8]
push dword [esi]
call fcn.0104c648
cmp dword [esi], 0
jne 0x104f2e2
push 0x1004a04
push 0x957
push 0x1004728
call fcn.0107b4be
push dword [esi]
call fcn.0109f47d
mov eax, dword [ebp - 0x2c]
and dword [esi], 0
push dword [eax + 0x4c]
call fcn.0107db82
test al, al
jne 0x104f477
cmp byte [ebx + 0xf4], al
jne 0x104f40e
mov byte [ebp - 0x19], al
lea eax, [ebp - 0x19]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x8c
push eax
push dword [ebp - 0x24]
call fcn.010a909c
mov esi, eax
test esi, esi
je 0x104f36f
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x104f35a
test byte [eax + 0x1c], 1
je 0x104f35a
cmp byte [eax + 0x19], 2
jb 0x104f35a
push dword [ebp - 0x28]
push esi
push dword [ebp - 0x20]
push edi
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0109b90b
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
push esi
call fcn.010d425e
mov dword [ebp - 0x18], eax
jmp 0x104f49f
mov eax, dword [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x104f3ab
test byte [eax + 0x1c], 1
je 0x104f3ab
cmp byte [eax + 0x19], 4
jb 0x104f3ab
cmp byte [ebp - 0x19], 0
mov ecx, 0x10027a8
jne 0x104f399
mov ecx, 0x10049fc
push dword [ebp - 0x24]
push ecx
push edi
push 0x5f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019979
cmp byte [ebp - 0x19], 0
je 0x104f436
push 1
push 0xc
mov ecx, ebx
call fcn.0104e0e3
mov ecx, dword [ebp - 0x2c]
push 0x2000
push dword [ebp - 0x24]
call fcn.0104eaf1
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x104f436
mov eax, dword [0x111124c]
cmp eax, esi
je 0x104f49f
test byte [eax + 0x1c], 1
je 0x104f49f
cmp byte [eax + 0x19], 2
jb 0x104f49f
push dword [ebp - 0x18]
push edi
push 0x60
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x104f49f
mov eax, dword [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x104f436
test byte [eax + 0x1c], 1
je 0x104f436
cmp byte [eax + 0x19], 4
jb 0x104f436
push edi
push 0x61
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push dword [ebp - 0x24]
call fcn.010d32dd
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x104f481
mov eax, dword [0x111124c]
cmp eax, esi
je 0x104f46e
test byte [eax + 0x1c], 1
je 0x104f46e
cmp byte [eax + 0x19], 2
jb 0x104f46e
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push edi
push 0x62
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov dword [ebp - 0x18], 0x80780124
jmp 0x104f49f
mov ecx, dword [ebp - 0x2c]
push 9
call fcn.0104c59a
lea eax, [ebx + 0xd4]
push eax
lea ecx, [ebx + 4]
call fcn.0101fc6b
mov esi, dword [ebp - 0x2c]
add esi, 0x10
push esi
lea ecx, [ebx + 4]
call fcn.0101fc6b
lea ecx, [ebx + 0x10]
call fcn.010d1b11
lea esi, [ebx + 0xa8]
push esi
lea ecx, [ebx + 4]
call fcn.0101fc6b
mov eax, dword [esi]
cmp eax, dword [ebx + 0xac]
jbe 0x104f4d4
push 0x10049dc
push 0x9a9
push 0x1004728
call fcn.0107b4be
mov edi, dword [ebp - 0x18]
test edi, edi
jge 0x104f593
cmp edi, 0x80780118
je 0x104f53a
cmp dword [ebp - 0x20], 0
je 0x104f53a
push 0x10bdee8
push dword [ebx + 0xe4]
push dword [ebx + 0xe0]
push dword [ebp - 0x20]
call fcn.010d9362
test eax, eax
jge 0x104f53a
mov ecx, dword [0x111124c]
cmp ecx, 0x111124c
je 0x104f53a
test byte [ecx + 0x1c], 1
je 0x104f53a
cmp byte [ecx + 0x19], 2
jb 0x104f53a
push eax
push dword [ebp - 0x20]
push 0x1004710
push 0x63
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010196ed
add ebx, 0xd8
mov eax, dword [ebx]
test eax, eax
je 0x104f54f
push eax
call fcn.0109f47d
and dword [ebx], 0
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.0104c600
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x104f598
test byte [eax + 0x1c], 1
je 0x104f598
cmp byte [eax + 0x19], 2
jb 0x104f598
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x104f57f
mov ecx, 0x10049d4
push edi
push ecx
push 0x1004710
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp dword [ebp - 0x30], ebx
je 0x104f5af
push dword [ebp - 0x30]
call esi
mov eax, dword [0x111124c]
cmp dword [ebp - 0x24], ebx
je 0x104f5be
push dword [ebp - 0x24]
call esi
mov eax, dword [0x111124c]
cmp dword [ebp - 0x20], ebx
je 0x104f5cd
push dword [ebp - 0x20]
call esi
mov eax, dword [0x111124c]
cmp dword [ebp - 0x3c], ebx
je 0x104f5dc
push dword [ebp - 0x3c]
call esi
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x104f601
test byte [eax + 0x1c], 1
je 0x104f601
cmp byte [eax + 0x19], 4
jb 0x104f601
push 0x1004710
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f5f8
leave
ret