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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104efc4
test byte [eax + 0x1c], 1
je 0x104efc4
cmp byte [eax + 0x19], 4
jb 0x104efc4
push 0x1004718
push 0x50
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
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.0104bbc7
cmp eax, esi
mov dword [ebp - 0x18], eax
jl 0x104f705
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.010df4ce
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x104f705
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x4c]
test al, 8
je 0x104f041
test al, 0x20
jne 0x104f041
mov byte [ebp - 0x40], 1
lea esi, [ebx + 0x10]
push 0
mov ecx, esi
call fcn.010d19a2
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x104f705
push 0
push 0
push dword [ebx + 0xc8]
push dword [ebp - 0x30]
call fcn.010d353f
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x104f0b2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104f705
test byte [eax + 0x1c], 1
je 0x104f705
cmp byte [eax + 0x19], 2
jb 0x104f705
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push 0x1004718
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x104f705
mov ecx, esi
call fcn.010d1aee
push 1
push 3
mov ecx, ebx
call fcn.0104e315
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call fcn.0107d1fe
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x104f705
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
cmp dword [ebx + 0xd8], edi
jne 0x104f267
push edi
push edi
push edi
push edi
mov ecx, ebx
call fcn.0104c616
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104f12d
test byte [eax + 0x1c], 1
je 0x104f12d
cmp byte [eax + 0x19], 4
jb 0x104f12d
push dword [ebx + 0xa0]
push dword [ebp - 0x20]
push 0x1004718
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov ecx, ebx
call fcn.0104bddc
cmp eax, edi
mov dword [ebp - 0x18], eax
jl 0x104f705
mov eax, dword [ebp - 0x2c]
add eax, 0x8c
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
call fcn.010a8d31
mov edi, eax
test edi, edi
je 0x104f198
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104f18b
test byte [eax + 0x1c], 1
je 0x104f18b
cmp byte [eax + 0x19], 2
jb 0x104f18b
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x24]
push 0x1004718
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019c0f
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
push edi
jmp 0x104f5c8
mov eax, dword [0x111024c]
mov edi, 0x111024c
cmp eax, edi
je 0x104f1ca
test byte [eax + 0x1c], 1
je 0x104f1ca
cmp byte [eax + 0x19], 4
jb 0x104f1ca
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push 0x1004718
push 0x54
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010197e6
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.0101f576
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call fcn.010a6f79
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 [0x111024c]
cmp eax, edi
je 0x104f230
test byte [eax + 0x1c], 1
je 0x104f230
cmp byte [eax + 0x19], 4
jb 0x104f230
push ecx
push 0x1004718
push 0x55
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [0x111024c]
cmp dword [ebp - 0x34], 0
je 0x104f271
cmp eax, edi
je 0x104f354
test byte [eax + 0x1c], 1
je 0x104f354
cmp byte [eax + 0x19], 2
jb 0x104f354
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x20]
push 0x1004718
push 0x56
jmp 0x104f349
mov eax, dword [0x111024c]
mov edi, 0x111024c
cmp eax, edi
je 0x104f299
test byte [eax + 0x1c], 1
je 0x104f299
cmp byte [eax + 0x19], 4
jb 0x104f299
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push 0x1004718
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010197e6
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.0101f576
push eax
push ebx
push 0x104da3a
push dword [ebp - 0x30]
push dword [ebx + 0xd8]
call fcn.010a75b7
mov dword [ebp - 0x34], eax
call esi
sub eax, dword [ebp - 0x44]
add dword [ebx + 0xec], eax
mov eax, dword [0x111024c]
cmp eax, edi
je 0x104f306
test byte [eax + 0x1c], 1
je 0x104f306
cmp byte [eax + 0x19], 4
jb 0x104f306
push dword [ebx + 0xe8]
push 0x1004718
push 0x58
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
push dword [ebp - 0x50]
mov ecx, ebx
push dword [ebp - 0x54]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0104c616
mov eax, dword [ebp - 0x34]
sub eax, 0
je 0x104f38f
dec eax
je 0x104f363
mov eax, dword [0x111024c]
cmp eax, edi
je 0x104f354
test byte [eax + 0x1c], 1
je 0x104f354
cmp byte [eax + 0x19], 2
jb 0x104f354
push dword [ebp - 0x28]
push dword [ebp - 0x34]
push dword [ebp - 0x20]
push 0x1004718
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019c0f
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x34]
jmp 0x104f5c8
lea ecx, [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
jne 0x104f383
push 0x1004a28
push 0x919
push 0x1004730
call fcn.0107b644
mov dword [ebp - 0x18], 0x8078001d
jmp 0x104f705
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 0x104f49d
cmp byte [ebp - 0x40], al
je 0x104f49d
mov esi, dword [ebp - 0x2c]
push 8
mov ecx, esi
call fcn.0104c704
mov eax, dword [0x111024c]
mov edi, 0x111024c
cmp eax, edi
je 0x104f41c
test byte [eax + 0x1c], 1
je 0x104f41c
cmp byte [eax + 0x19], 3
jb 0x104f41c
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 0x1004718
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104ba18
lea eax, [ebp - 0x3c]
push eax
push 2
push dword [esi + 0x4c]
lea eax, [esi + 0x3c]
push eax
call fcn.010d6ba5
test eax, eax
jge 0x104f455
mov ecx, dword [0x111024c]
cmp ecx, edi
je 0x104f4a3
test byte [ecx + 0x1c], 1
je 0x104f4a3
cmp byte [ecx + 0x19], 2
jb 0x104f4a3
push eax
push dword [ebp - 0x20]
push 0x1004718
push 0x5b
jmp 0x104f492
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.010b9dbd
test eax, eax
jge 0x104f49d
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x104f4a3
test byte [ecx + 0x1c], 1
je 0x104f4a3
cmp byte [ecx + 0x19], 2
jb 0x104f4a3
push eax
push dword [ebp - 0x3c]
push 0x1004718
push 0x5c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
mov ecx, dword [0x111024c]
mov eax, dword [ebx + 0xa8]
lea edx, [eax + 1]
cmp edx, dword [ebx + 0xac]
je 0x104f4e8
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.0107e274
test al, al
jne 0x104f6f9
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x104f51a
test byte [ecx + 0x1c], 1
je 0x104f51a
cmp byte [ecx + 0x19], 4
jb 0x104f51a
push dword [ebx + 0xa0]
mov edi, 0x1004718
push dword [ebp - 0x20]
push edi
push 0x5d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x104f51f
mov edi, 0x1004718
mov ecx, dword [ebp - 0x2c]
lea esi, [ebx + 0xd8]
push dword [esi]
call fcn.0104c87a
cmp dword [esi], 0
jne 0x104f548
push 0x1004a0c
push 0x957
push 0x1004730
call fcn.0107b644
push dword [esi]
call fcn.0109f36b
mov eax, dword [ebp - 0x2c]
and dword [esi], 0
push dword [eax + 0x4c]
call fcn.0107dd0d
test al, al
jne 0x104f6dd
cmp byte [ebx + 0xf4], al
jne 0x104f674
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.010a8f8a
mov esi, eax
test esi, esi
je 0x104f5d5
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104f5c0
test byte [eax + 0x1c], 1
je 0x104f5c0
cmp byte [eax + 0x19], 2
jb 0x104f5c0
push dword [ebp - 0x28]
push esi
push dword [ebp - 0x20]
push edi
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019c0f
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
push esi
call fcn.010d41ac
mov dword [ebp - 0x18], eax
jmp 0x104f705
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x104f611
test byte [eax + 0x1c], 1
je 0x104f611
cmp byte [eax + 0x19], 4
jb 0x104f611
cmp byte [ebp - 0x19], 0
mov ecx, 0x10027a8
jne 0x104f5ff
mov ecx, 0x1004a04
push dword [ebp - 0x24]
push ecx
push edi
push 0x5f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010197e6
cmp byte [ebp - 0x19], 0
je 0x104f69c
push 1
push 0xc
mov ecx, ebx
call fcn.0104e315
mov ecx, dword [ebp - 0x2c]
push 0x2000
push dword [ebp - 0x24]
call fcn.0104ed57
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x104f69c
mov eax, dword [0x111024c]
cmp eax, esi
je 0x104f705
test byte [eax + 0x1c], 1
je 0x104f705
cmp byte [eax + 0x19], 2
jb 0x104f705
push dword [ebp - 0x18]
push edi
push 0x60
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x104f705
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x104f69c
test byte [eax + 0x1c], 1
je 0x104f69c
cmp byte [eax + 0x19], 4
jb 0x104f69c
push edi
push 0x61
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push dword [ebp - 0x24]
call fcn.010d3243
mov dword [ebp - 0x18], eax
test eax, eax
jge 0x104f6e7
mov eax, dword [0x111024c]
cmp eax, esi
je 0x104f6d4
test byte [eax + 0x1c], 1
je 0x104f6d4
cmp byte [eax + 0x19], 2
jb 0x104f6d4
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push edi
push 0x62
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov dword [ebp - 0x18], 0x80780124
jmp 0x104f705
mov ecx, dword [ebp - 0x2c]
push 9
call fcn.0104c7cc
lea eax, [ebx + 0xd4]
push eax
lea ecx, [ebx + 4]
call fcn.0101fba8
mov esi, dword [ebp - 0x2c]
add esi, 0x10
push esi
lea ecx, [ebx + 4]
call fcn.0101fba8
lea ecx, [ebx + 0x10]
call fcn.010d1aee
lea esi, [ebx + 0xa8]
push esi
lea ecx, [ebx + 4]
call fcn.0101fba8
mov eax, dword [esi]
cmp eax, dword [ebx + 0xac]
jbe 0x104f73a
push 0x10049e4
push 0x9a9
push 0x1004730
call fcn.0107b644
mov edi, dword [ebp - 0x18]
test edi, edi
jge 0x104f7f9
cmp edi, 0x80780118
je 0x104f7a0
cmp dword [ebp - 0x20], 0
je 0x104f7a0
push 0x10bdd14
push dword [ebx + 0xe4]
push dword [ebx + 0xe0]
push dword [ebp - 0x20]
call fcn.010d92af
test eax, eax
jge 0x104f7a0
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x104f7a0
test byte [ecx + 0x1c], 1
je 0x104f7a0
cmp byte [ecx + 0x19], 2
jb 0x104f7a0
push eax
push dword [ebp - 0x20]
push 0x1004718
push 0x63
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
add ebx, 0xd8
mov eax, dword [ebx]
test eax, eax
je 0x104f7b5
push eax
call fcn.0109f36b
and dword [ebx], 0
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
push edi
call fcn.0104c832
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104f7fe
test byte [eax + 0x1c], 1
je 0x104f7fe
cmp byte [eax + 0x19], 2
jb 0x104f7fe
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x104f7e5
mov ecx, 0x10049dc
push edi
push ecx
push 0x1004718
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, dword [0x111024c]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
cmp dword [ebp - 0x30], ebx
je 0x104f815
push dword [ebp - 0x30]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0x24], ebx
je 0x104f824
push dword [ebp - 0x24]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0x20], ebx
je 0x104f833
push dword [ebp - 0x20]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 0x3c], ebx
je 0x104f842
push dword [ebp - 0x3c]
call esi
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x104f867
test byte [eax + 0x1c], 1
je 0x104f867
cmp byte [eax + 0x19], 4
jb 0x104f867
push 0x1004718
push 0x65
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret