Function at 0x40d5b8
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
push ebp
push edi
push esi
push ebx
mov edi, 1
cmp dword [0x6df170], 0
je 0x40d5d5
mov edi, 2
lea esi, [edi*8]
cmp dword [esi + 0x445e30], 0
je 0x40d64d
cmp dword [esi + 0x445e34], 0
je 0x40d634
mov ebp, 0x445e30
mov ebx, esi
mov edx, dword [0x4f0440]
mov eax, dword [esi + 0x445e34]
add esp, 0xfffffff8
mov ecx, dword [edx]
push 0
push 0
push 8
push eax
mov eax, dword [esi + ebp]
push eax
push edx
mov eax, dword [ecx + 0x54]
call eax
add esp, 8
test eax, eax
jge 0x40d634
add ebx, 8
inc edi
mov esi, ebx
cmp dword [ebp + ebx], 0
je 0x40d64d
cmp dword [ebx + 0x445e34], 0
jne 0x40d5f5
lea eax, [edi*8]
cmp dword [eax + 0x445e30], 0
je 0x40d64d
cmp dword [eax + 0x445e34], 0
jne 0x40d660
mov eax, dword [0x6df150]
mov eax, dword [eax + 0x368]
jmp 0x40da01
mov dword [0x57d1b0], 0x64
mov dword [0x57d200], 0
mov dword [0x5fd510], 0
mov dword [0x5fd518], 0x280
mov dword [0x5fd514], 0
cmp dword [0x4f0410], 1
jne 0x40d6a7
mov dword [0x5fd51c], 0x1e0
jmp 0x40d6b1
mov dword [0x5fd51c], 0x1c0
cmp dword [0x6df170], 0
je 0x40d6f0
mov dword [0x64d990], 0x50
cmp dword [0x4f0410], 1
jne 0x40d6e0
mov dword [0x64d994], 0x5d
jmp 0x40d71a
mov dword [0x64d994], 0x6d
jmp 0x40d71a
mov dword [0x64d990], 0
cmp dword [0x4f0410], 1
jne 0x40d710
mov dword [0x64d994], 0
jmp 0x40d71a
mov dword [0x64d994], 0x10
mov dword [0x6df190], 0x280
cmp dword [0x4f0410], 1
jne 0x40d740
mov dword [0x6df194], 0x1e0
jmp 0x40d74a
mov dword [0x6df194], 0x1c0
mov eax, dword [0x6df190]
add eax, dword [0x64d990]
mov dword [0x64d998], eax
mov eax, dword [0x6df194]
add eax, dword [0x64d994]
mov dword [0x64d99c], eax
lea edi, [esp + 0x30]
xor ebx, ebx
mov eax, ebx
cld
mov ecx, 0x1f
rep stosd dword es:[edi], eax
mov eax, dword [0x4f0440]
mov dword [esp + 0x30], 0x7c
mov dword [esp + 0x34], 0x21
mov dword [esp + 0x98], 0x218
mov dword [esp + 0x44], 2
mov edx, dword [eax]
push 0
push 0x57d240
lea esi, [esp + 0x38]
push esi
push eax
mov eax, dword [edx + 0x18]
call eax
test eax, eax
jge 0x40d7d0
mov eax, dword [0x6df150]
mov eax, dword [eax + 0x36c]
jmp 0x40da01
mov edx, dword [0x57d240]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 4
add esp, 0xfffffffc
mov ecx, dword [edx]
push 0x4f0460
lea eax, [esp + 0x28]
push eax
push edx
mov eax, dword [ecx + 0x30]
call eax
add esp, 4
test eax, eax
jge 0x40d822
mov eax, dword [0x6df150]
mov eax, dword [eax + 0x370]
jmp 0x40da01
mov edx, 0x64dac0
mov edi, edx
mov eax, ebx
cld
mov ecx, 0x101
rep stosd dword es:[edi], eax
mov word [0x64dac0], 0x300
mov word [edx + 2], 0x100
mov dword [0x699050], 0x4eef80
mov dword [0x699054], 0x4ef384
mov edi, 0x4eef80
mov dword [0x699058], 0x4ef788
cld
mov ecx, 0x101
rep stosd dword es:[edi], eax
mov edi, 0x4ef384
cld
mov ecx, 0x101
rep stosd dword es:[edi], eax
mov edi, dword [0x699058]
cld
mov ecx, 0x101
rep stosd dword es:[edi], eax
mov eax, dword [0x699050]
mov word [eax], 0x300
mov eax, dword [0x699050]
mov word [eax + 2], 0x100
mov eax, dword [0x699054]
mov word [eax], 0x300
mov eax, dword [0x699054]
mov word [eax + 2], 0x100
mov eax, dword [0x699058]
mov word [eax], 0x300
mov eax, dword [0x699058]
mov word [eax + 2], 0x100
mov eax, dword [0x4f0440]
add esp, 0xfffffff4
mov edx, dword [eax]
push 0
push 0x5fd260
push 0x64dac4
push 0x44
push eax
mov eax, dword [edx + 0x14]
mov dword [0x4f0470], 0
call eax
add esp, 0xc
test eax, eax
jge 0x40d906
mov eax, dword [0x6df150]
mov eax, dword [eax + 0x374]
jmp 0x40da01
mov edx, dword [0x57d240]
mov eax, dword [0x5fd260]
add esp, 0xfffffff8
mov ecx, dword [edx]
push eax
push edx
mov eax, dword [ecx + 0x7c]
call eax
add esp, 8
test eax, eax
jge 0x40d934
mov eax, dword [0x6df150]
mov eax, dword [eax + 0x378]
jmp 0x40da01
add esp, 0xfffffff8
push 0
push 0
call fcn.00409b0c
mov edx, 0x64dfe0
mov edi, edx
mov eax, ebx
cld
mov ecx, 0x12c00
rep stosd dword es:[edi], eax
mov edi, esi
add esp, 0x10
cld
mov ecx, 0x1f
rep stosd dword es:[edi], eax
lea edi, [esp + 0x78]
cld
mov ecx, 8
rep stosd dword es:[edi], eax
mov eax, dword [0x4f0440]
mov dword [esp + 0x30], 0x7c
mov dword [esp + 0x34], 0x180f
mov dword [esp + 0x98], 0x840
mov dword [esp + 0x3c], 0x280
mov dword [esp + 0x38], 0x1e0
mov dword [esp + 0x40], 0x280
mov dword [esp + 0x54], edx
mov dword [esp + 0x78], 0x20
mov dword [esp + 0x7c], 0x60
mov dword [esp + 0x84], 8
mov dword [esp + 0x88], 0xff
mov dword [esp + 0x8c], 0xff
mov dword [esp + 0x90], 0xff
mov edx, dword [eax]
push 0
push 0x537180
push esi
push eax
mov eax, dword [edx + 0x18]
call eax
test eax, eax
jge 0x40da10
mov eax, dword [0x6df150]
mov eax, dword [eax + 0x37c]
mov dword [0x44e950], eax
xor eax, eax
jmp 0x40dea7
mov eax, dword [0x4f0440]
add esp, 0xfffffff4
push 0x44ef50
push 0x5fd390
push eax
push 0x4000
push 3
call fcn.00409c70
add esp, 0x20
test eax, eax
je 0x40da06
mov eax, dword [0x4f0440]
add esp, 0xfffffffc
push 5
push 0x4efba0
push eax
call fcn.0040ac94
add esp, 0x10
test eax, eax
je 0x40da06
mov bl, byte [0x43bd0c]
mov byte [0x4f0020], bl
mov al, byte [0x43bd0d]
mov byte [0x4f0021], al
mov cl, byte [0x43bd0e]
mov byte [0x4f0022], cl
mov bl, byte [0x43bd10]
mov byte [0x4f0060], bl
mov al, byte [0x43bd11]
mov byte [0x4f0061], al
mov cl, byte [0x43bd12]
mov byte [0x4f0062], cl
mov bl, byte [0x43bd14]
mov byte [0x4f00a0], bl
mov al, byte [0x43bd15]
mov byte [0x4f00a1], al
mov cl, byte [0x43bd16]
mov byte [0x4f00a2], cl
mov bl, byte [0x43bd18]
mov byte [0x4f00e0], bl
mov al, byte [0x43bd19]
mov byte [0x4f00e1], al
mov cl, byte [0x43bd1a]
mov byte [0x4f00e2], cl
mov bl, byte [0x43bd1c]
mov byte [0x4f0120], bl
mov al, byte [0x43bd1d]
mov byte [0x4f0121], al
mov cl, byte [0x43bd1e]
mov byte [0x4f0122], cl
mov bl, byte [0x43bd20]
mov byte [0x4f0160], bl
mov al, byte [0x43bd21]
mov byte [0x4f0161], al
mov cl, byte [0x43bd22]
mov esi, ecx
mov byte [0x4f0162], cl
mov cl, byte [0x43bd24]
mov byte [0x4f01a0], cl
mov dl, byte [0x43bd25]
mov byte [0x4f01a1], dl
mov al, byte [0x43bd26]
mov byte [0x4f01a2], al
mov bl, byte [0x43bd0c]
mov byte [0x536720], bl
mov bl, byte [0x43bd0d]
mov byte [0x536721], bl
mov bl, byte [0x43bd0e]
mov byte [0x536722], bl
mov bl, byte [0x43bd10]
mov byte [0x536760], bl
mov bl, byte [0x43bd11]
mov byte [0x536761], bl
mov bl, byte [0x43bd12]
mov byte [0x536762], bl
mov bl, byte [0x43bd14]
mov byte [0x5367a0], bl
mov bl, byte [0x43bd15]
mov byte [0x5367a1], bl
mov bl, byte [0x43bd16]
mov byte [0x5367a2], bl
mov bl, byte [0x43bd18]
mov byte [0x5367e0], bl
mov bl, byte [0x43bd19]
mov byte [0x5367e1], bl
mov bl, byte [0x43bd1a]
mov byte [0x5367e2], bl
mov bl, byte [0x43bd1c]
mov byte [0x536820], bl
mov bl, byte [0x43bd1d]
mov byte [0x536821], bl
mov bl, byte [0x43bd1e]
mov byte [0x536822], bl
mov bl, byte [0x43bd20]
mov byte [0x536860], bl
mov bl, byte [0x43bd21]
mov byte [0x536861], bl
mov ebx, esi
mov byte [0x536862], bl
mov byte [0x5368a0], cl
mov byte [0x5368a1], dl
mov byte [0x5368a2], al
mov bl, byte [0x43bd0c]
mov byte [0x4efc00], bl
mov bl, byte [0x43bd0d]
mov byte [0x4efc01], bl
mov bl, byte [0x43bd0e]
mov byte [0x4efc02], bl
mov bl, byte [0x43bd10]
mov byte [0x4efc40], bl
mov bl, byte [0x43bd11]
mov byte [0x4efc41], bl
mov bl, byte [0x43bd12]
mov byte [0x4efc42], bl
mov bl, byte [0x43bd14]
mov byte [0x4efc80], bl
mov bl, byte [0x43bd15]
mov byte [0x4efc81], bl
mov bl, byte [0x43bd16]
mov byte [0x4efc82], bl
mov bl, byte [0x43bd18]
mov byte [0x4efcc0], bl
mov bl, byte [0x43bd19]
mov byte [0x4efcc1], bl
mov bl, byte [0x43bd1a]
mov byte [0x4efcc2], bl
mov bl, byte [0x43bd1c]
mov byte [0x4efd00], bl
mov bl, byte [0x43bd1d]
mov byte [0x4efd01], bl
mov bl, byte [0x43bd1e]
mov byte [0x4efd02], bl
mov bl, byte [0x43bd20]
mov byte [0x4efd40], bl
mov bl, byte [0x43bd21]
mov byte [0x4efd41], bl
mov ebx, esi
mov byte [0x4efd42], bl
mov byte [0x4efd80], cl
mov byte [0x4efd81], dl
mov byte [0x4efd82], al
mov bl, byte [0x43bd0c]
mov byte [0x536b60], bl
mov bl, byte [0x43bd0d]
mov byte [0x536b61], bl
mov bl, byte [0x43bd0e]
mov byte [0x536b62], bl
mov bl, byte [0x43bd10]
mov byte [0x536ba0], bl
mov bl, byte [0x43bd11]
mov byte [0x536ba1], bl
mov bl, byte [0x43bd12]
mov byte [0x536ba2], bl
mov bl, byte [0x43bd14]
mov byte [0x536be0], bl
mov bl, byte [0x43bd15]
mov byte [0x536be1], bl
mov bl, byte [0x43bd16]
mov byte [0x536be2], bl
mov bl, byte [0x43bd18]
mov byte [0x536c20], bl
mov bl, byte [0x43bd19]
mov byte [0x536c21], bl
mov bl, byte [0x43bd1a]
mov byte [0x536c22], bl
mov bl, byte [0x43bd1c]
mov byte [0x536c60], bl
mov bl, byte [0x43bd1d]
mov byte [0x536c61], bl
mov bl, byte [0x43bd1e]
mov byte [0x536c62], bl
mov bl, byte [0x43bd20]
mov byte [0x536ca0], bl
mov bl, byte [0x43bd21]
mov byte [0x536ca1], bl
mov ebx, esi
mov byte [0x536ca2], bl
mov byte [0x536ce0], cl
mov byte [0x536ce1], dl
mov byte [0x536ce2], al
mov dword [0x4f0420], 0
mov edi, 0x64dac4
mov esi, 0x4effe0
mov dword [0x6df1b0], 0x4effe0
cld
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [0x57d240]
mov dword [0x5366c0], 0xffffffff
mov esi, 7
lea esi, [esi]
mov eax, dword [ebx]
add esp, 0xfffffffc
push 1
push 0
push ebx
mov eax, dword [eax + 0x2c]
call eax
add esp, 4
dec esi
jns 0x40de30
call sub.KERNEL32.dll_GetTickCount
mov edi, eax
mov esi, 0x77
mov eax, dword [ebx]
add esp, 0xfffffffc
push 1
push 0
push ebx
mov eax, dword [eax + 0x2c]
call eax
add esp, 4
dec esi
jns 0x40de51
call sub.KERNEL32.dll_GetTickCount
sub eax, edi
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
fild qword [esp + 0x18]
fdiv qword [0x40d5a8]
fld qword [0x40d5b0]
fxch st(1)
fst qword [0x64d540]
fcomp st(1)
fnstsw ax
and ah, 0x45
jne 0x40dea0
fstp qword [0x64d540]
jmp 0x40dea2
fstp st(0)
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
add esp, 0xac
ret