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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push esi
mov dword [ebp - 0x18], edi
call fcn.004ac06b
cmp word [esi + 0x126], di
pop ecx
push 1
mov dword [ebp - 0x24], eax
mov ax, word [esi + 0x1a0]
pop ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], edi
jne 0x45aed9
push dword [esi + 4]
call fcn.004377b7
test ax, ax
pop ecx
jne 0x45aed9
mov eax, dword [esi + 0x12c]
cmp eax, dword [esi + 0x144]
jne 0x45aee0
cmp dword [ebp + 0x14], edi
je 0x45a73d
cmp dword [ebp + 0x14], ebx
jne 0x45a754
push edi
mov word [esi + 0x184], bx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0045a54b
add esp, 0x10
add esi, 0x182
cmp word [esi], di
je 0x45a767
xor ax, ax
jmp 0x45aee3
mov word [esi], bx
mov eax, dword [0x5b7bf4]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
mov dword [0x5b7bf4], eax
lea eax, [ebp - 0x94]
push edi
push eax
mov dword [ebp - 0x28], 0x5b7bf4
mov dword [ebp - 0xa0], edi
call fcn.0052a5c0
mov esi, dword [ebp + 8]
pop ecx
test eax, eax
pop ecx
jne 0x45aea6
cmp word [esi + 0x184], di
lea ebx, [esi + 0x184]
jne 0x45a7bc
cmp word [ebp - 0x1c], di
je 0x45a7c9
push 1
push esi
call fcn.00459f8c
pop ecx
mov word [ebx], di
pop ecx
cmp dword [esi + 0x188], edi
jne 0x45a84e
push dword [esi + 0x138]
push dword [esi + 0x12c]
push dword [esi + 4]
call fcn.00434fde
pop ecx
push eax
call fcn.0049ce77
add esp, 0xc
cmp ax, di
mov dword [ebp - 0x2c], eax
jne 0x45a843
cmp dword [esi + 0x188], edi
jne 0x45a81c
push dword [esi + 0x130]
call fcn.004ac3a5
cmp eax, edi
pop ecx
mov dword [esi + 0x188], eax
je 0x45a81c
push eax
call fcn.004ad241
pop ecx
cmp word [esi + 0x19c], di
jne 0x45a833
push dword [esi + 4]
call fcn.00437b2e
test ax, ax
pop ecx
je 0x45a843
cmp word [ebp - 0x1c], di
jne 0x45a843
mov dword [esi + 0x198], 1
call fcn.004c096e
mov dword [esi + 0x194], eax
cmp dword [esi + 0x190], edi
jne 0x45a8ee
push dword [esi]
call fcn.0043e6b9
cmp eax, edi
pop ecx
mov dword [esi + 0x190], eax
jne 0x45a895
push 0x40090002
push 4
push dword [esi + 4]
call fcn.00432366
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xa4]
mov word [esi + 0x182], di
add esp, 0xc
mov dword [eax], ecx
jmp 0x45aed3
push eax
push dword [esi]
call fcn.0043e790
pop ecx
pop ecx
push 1
pop ebx
push ebx
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_12
pop ecx
push dword [ebp + 0x10]
push dword [esi + 0x190]
push esi
call fcn.0045aee8
add esp, 0xc
push 2
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e7ac
pop ecx
pop ecx
jmp 0x45a8f1
push 1
pop ebx
push dword [ebp + 0xc]
call fcn.00441e6f
test ax, ax
pop ecx
jne 0x45ae34
cmp dword [esi + 0x190], edi
je 0x45ae34
push dword [esi]
call fcn.0043e7c8
cmp eax, edi
pop ecx
mov dword [ebp - 0x18], eax
je 0x45acbd
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e790
pop ecx
pop ecx
push 3
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_96
pop ecx
test al, al
pop ecx
je 0x45ac9f
mov eax, dword [0x5b7bf4]
push edi
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0xf4]
mov dword [0x5b7bf4], eax
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], 0x5b7bf4
mov dword [ebp - 0xf0], edi
call fcn.0052a5c0
mov esi, dword [ebp + 8]
pop ecx
test eax, eax
pop ecx
jne 0x45ac6b
call fcn.0043ad4a
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x198]
cmp eax, ebx
jne 0x45a99e
push 5
jmp 0x45a9a5
cmp eax, 2
jne 0x45a9a8
push 8
pop ebx
jmp 0x45a9b5
mov bx, word [ebp - 0x1c]
neg bx
sbb ebx, ebx
and ebx, 7
inc ebx
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
call fcn.004ae2ee
pop ecx
lea eax, [ebp - 0x54]
pop ecx
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004adfde
add esp, 0xc
cmp word [ebp - 0x2c], di
je 0x45aa04
push dword [esi + 0x138]
push dword [esi + 0x12c]
push dword [esi + 4]
call fcn.00434fde
pop ecx
push eax
push dword [esi + 0x190]
call fcn.0049cf67
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x198]
cmp eax, 2
jne 0x45ab00
cmp word [esi + 0x1a0], di
jne 0x45ab00
push esi
call fcn.0045fc8a
mov edi, eax
mov eax, dword [esi]
pop ecx
sub di, word [eax + 0x90]
push esi
call fcn.0045fd39
mov ebx, eax
mov eax, dword [esi]
pop ecx
sub bx, word [eax + 0x94]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0045b766
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_37
mov ax, word [esi + 0x19e]
pop ecx
mov word [ebp - 0x14], ax
call fcn.0043ad4a
mov dword [ebp - 8], eax
call fcn.004c096e
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 8], ecx
cmp word [ebp - 0x14], 0
je 0x45aa9e
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0x1a4]
jge 0x45aaef
call fcn.004c096e
cmp eax, dword [ebp - 8]
jae 0x45aaef
push dword [ebp - 0x10]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14], 1
push dword [ebp - 0x20]
push eax
lea eax, [esi + 0x50]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
movsx eax, bx
shl eax, 0x10
push eax
movsx eax, di
shl eax, 0x10
push eax
push dword [esi + 0x190]
push esi
call fcn.0045af27
add esp, 0x28
test eax, eax
je 0x45aa7f
push dword [esi + 0x188]
mov word [esi + 0x1a0], 1
call fcn.004ad241
pop ecx
mov eax, dword [esi + 0x1a8]
cmp eax, dword [esi + 0x1a4]
jmp 0x45abd3
cmp eax, 3
jne 0x45abdb
push esi
call fcn.0045fc8a
mov ebx, eax
mov eax, dword [esi]
pop ecx
sub bx, word [eax + 0x90]
push esi
call fcn.0045fd39
pop ecx
mov ecx, dword [esi]
sub ax, word [ecx + 0x94]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0045b766
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_37
mov eax, dword [esi + 0x1b4]
pop ecx
cmp eax, dword [esi + 0x1b0]
jge 0x45abc7
movsx eax, word [ebp - 8]
movsx ebx, bx
shl eax, 0x10
mov dword [ebp - 8], eax
shl ebx, 0x10
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [esi + 0x50]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [esi + 0x190]
push esi
call fcn.0045b414
add esp, 0x2c
test eax, eax
jne 0x45abaf
cmp word [ebp - 0x14], di
jne 0x45abc7
mov eax, dword [esi + 0x1b4]
cmp eax, dword [esi + 0x1b0]
jl 0x45ab67
jmp 0x45abc7
mov eax, dword [esi + 0x1b0]
push dword [esi + 0x188]
mov dword [esi + 0x1b4], eax
call fcn.004ad241
pop ecx
mov eax, dword [esi + 0x1b4]
cmp eax, dword [esi + 0x1b0]
jl 0x45ac5c
jmp 0x45ac55
cmp word [ebp - 4], di
jne 0x45ac5c
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0045b766
cmp dword [esi + 0x188], edi
pop ecx
pop ecx
je 0x45ac2f
lea eax, [ebp - 0x34]
push eax
call fcn.0043ad22
pop ecx
push dword [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x44]
push edi
push eax
push dword [ebp - 8]
push ebx
push dword [esi + 0x138]
push dword [ebp - 0x18]
push dword [esi + 0x190]
push dword [esi + 0x188]
call fcn.004aca3d
add esp, 0x2c
mov dword [ebp - 4], eax
jmp 0x45ac5c
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push dword [esi + 0x138]
push dword [ebp - 0x18]
push dword [esi + 0x190]
push dword [esi + 0x130]
call fcn.004acc20
add esp, 0x20
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xf4]
xor edi, edi
mov dword [eax], ecx
jmp 0x45ac74
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xc], eax
push 2
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e7ac
pop ecx
pop ecx
push dword [ebp - 0x18]
push dword [esi]
call fcn.0043e833
pop ecx
jmp 0x45acb9
push dword [esi]
call fcn.004400ff
pop ecx
mov ebx, eax
push ebx
push dword [esi]
call fcn.0043dfe3
pop ecx
pop ecx
push ebx
call fcn.00455083
pop ecx
push 1
pop ebx
cmp word [ebp - 4], di
jne 0x45acd1
cmp dword [ebp - 0xc], edi
jne 0x45acd1
cmp dword [ebp + 0x14], edi
jne 0x45ae34
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e790
pop ecx
pop ecx
push 3
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_37
cmp dword [ebp + 0x14], edi
pop ecx
je 0x45adb6
mov ecx, dword [esi + 0x188]
cmp ecx, edi
je 0x45ade9
mov eax, dword [esi + 0x198]
cmp eax, ebx
jne 0x45adbb
push ecx
mov dword [esi + 0x198], 2
call fcn.004ad241
pop ecx
push 3
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push edi
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e7ac
pop ecx
pop ecx
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e724
pop ecx
pop ecx
push dword [esi]
call fcn.0043e6b9
cmp eax, edi
pop ecx
mov dword [esi + 0x190], eax
je 0x45adb6
push eax
push dword [esi]
call fcn.0043e790
pop ecx
pop ecx
push ebx
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [esi + 0x190]
call sub.AGM.dll_Ordinal_12
pop ecx
push dword [ebp + 0x10]
push dword [esi + 0x190]
push esi
call fcn.0045aee8
add esp, 0xc
jmp 0x45add9
mov dword [ebp - 4], ebx
jmp 0x45ade9
cmp eax, 2
jne 0x45adde
push esi
mov dword [esi + 0x198], 3
call fcn.0045b6b1
cmp dword [esi + 0x1b0], edi
pop ecx
je 0x45ade3
mov dword [ebp - 4], edi
jmp 0x45ade9
cmp eax, 3
jne 0x45ade9
mov dword [esi + 0x198], edi
cmp dword [ebp - 0xc], edi
je 0x45ae11
push dword [ebp - 0xc]
push dword [esi + 0x130]
call fcn.004ac395
pop ecx
pop ecx
push dword [ebp - 0xc]
push 4
push dword [ebp - 0x24]
call fcn.00432366
add esp, 0xc
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x190]
cmp eax, edi
je 0x45ae34
push 2
push eax
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e7ac
pop ecx
pop ecx
cmp word [ebp - 4], di
je 0x45ae99
lea ebx, [esi + 0x194]
call fcn.004c096e
sub eax, dword [ebx]
mov dword [ebx], eax
mov eax, dword [esi + 0x190]
cmp eax, edi
je 0x45ae80
push edi
push eax
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e7ac
pop ecx
pop ecx
push dword [esi + 0x190]
push dword [esi]
call fcn.0043e724
pop ecx
mov dword [esi + 0x190], edi
pop ecx
push dword [ebp - 0x24]
call fcn.00432589
lea ebx, [esi + 0x188]
pop ecx
push dword [ebx]
call fcn.004c7e2e
pop ecx
mov dword [ebx], edi
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xa4]
mov dword [eax], ecx
jmp 0x45aecc
push dword [esi + 4]
call fcn.00432589
pop ecx
push dword [esi + 0x130]
call fcn.004ad8c9
test ax, ax
pop ecx
je 0x45aecc
push dword [ebp - 0x98]
call fcn.00401daf
pop ecx
mov word [esi + 0x182], di
mov ax, word [ebp - 4]
jmp 0x45aee3
mov word [esi + 0x182], di
mov ax, bx
pop edi
pop esi
pop ebx
leave
ret