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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push dword [esi]
mov dword [ebp - 0x14], edi
call fcn.0043e635
cmp dword [esi + 0x188], edi
pop ecx
mov dword [ebp - 8], eax
je 0x45b7be
push 1
push esi
call fcn.00459f8c
pop ecx
pop ecx
cmp dword [ebp - 8], edi
je 0x45b9ff
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.0045b766
pop ecx
mov dword [ebp - 0x1c], eax
pop ecx
call fcn.004c096e
mov dword [esi + 0x194], eax
mov eax, dword [0x5b7bf4]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
mov dword [0x5b7bf4], eax
lea eax, [ebp - 0x84]
mov ebx, 0x5b7bf4
push edi
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x90], edi
call fcn.0052a5c0
mov esi, dword [ebp + 8]
pop ecx
test eax, eax
pop ecx
jne 0x45b837
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0045a54b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x94]
add esp, 0x10
mov dword [eax], ecx
mov eax, dword [ebp - 8]
cmp word [eax + 0x10], di
je 0x45b848
push eax
call fcn.004548c6
jmp 0x45b84f
push dword [esi]
call fcn.0043e6b9
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
je 0x45b9e4
mov eax, dword [ebp - 8]
cmp word [eax + 0x10], di
je 0x45b86c
push eax
call fcn.0045499b
jmp 0x45b873
push dword [esi]
call fcn.0043e7c8
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
je 0x45b9c7
push dword [ebp + 0x10]
push dword [ebp - 4]
push esi
call fcn.0045aee8
add esp, 0xc
push dword [esi + 0x138]
push dword [esi + 0x12c]
push dword [esi + 4]
call fcn.00434fde
pop ecx
push eax
push dword [ebp - 4]
call fcn.0049cf67
add esp, 0x10
cmp ax, di
mov dword [ebp - 0x14], eax
jne 0x45b9aa
push dword [esi + 0x130]
call fcn.004ac3a5
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
je 0x45b9aa
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call fcn.004ae2ee
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
lea eax, [esi + 0x68]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004adfde
add esp, 0xc
push dword [ebp - 4]
push dword [esi]
call fcn.0043e790
pop ecx
pop ecx
push 1
push dword [ebp - 4]
call sub.AGM.dll_Ordinal_96
mov eax, dword [0x5b7bf4]
pop ecx
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xe4]
pop ecx
mov dword [0x5b7bf4], eax
lea eax, [ebp - 0xd4]
push edi
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xe0], edi
call fcn.0052a5c0
mov esi, dword [ebp + 8]
pop ecx
test eax, eax
pop ecx
jne 0x45b98a
push dword [ebp - 0x10]
call fcn.004ad241
pop ecx
lea eax, [ebp - 0x44]
push edi
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push eax
push edi
push edi
push dword [esi + 0x138]
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.004aca3d
add esp, 0x2c
cmp word [esi + 0x126], di
jne 0x45b97f
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xe4]
mov dword [eax], ecx
push edi
push dword [ebp - 4]
call sub.AGM.dll_Ordinal_96
pop ecx
pop ecx
push dword [ebp - 4]
push dword [esi]
call fcn.0043e7ac
pop ecx
pop ecx
push dword [ebp - 0x10]
call fcn.004c7e2e
pop ecx
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
cmp word [eax + 0x10], di
je 0x45b9be
push eax
call fcn.00454a05
jmp 0x45b9c5
push dword [esi]
call fcn.0043e833
pop ecx
pop ecx
mov eax, dword [ebp - 8]
push dword [ebp - 4]
cmp word [eax + 0x10], di
je 0x45b9db
push eax
call fcn.00454930
jmp 0x45b9e2
push dword [esi]
call fcn.0043e724
pop ecx
pop ecx
push dword [ebp - 8]
push dword [esi]
call fcn.0043e67d
pop ecx
add esi, 0x194
pop ecx
call fcn.004c096e
sub eax, dword [esi]
mov dword [esi], eax
mov ax, word [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret