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

Disassembly:
push 0xffffffffffffffff
push 0x100ea616
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10132f1c]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10132f1c]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov edi, dword [esp + 0x274]
mov eax, dword [esp + 0x288]
mov bl, bl
push ebx
pop ebx
push eax
lea eax, [esp + 0x64]
push eax
push edi
call fcn.1002a190
add esp, 0xc
xchg ebx, eax
xchg ebx, eax
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x26c], 1
xchg ebx, eax
xchg ebx, eax
mov ebp, dword [esp + 0x28c]
cmp ebp, esi
jle 0x100403fa
mov ebx, dword [esp + 0x290]
cmp ebx, esi
jle 0x100403fa
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, eax
mov ecx, ecx
call ebp
mov eax, eax
sub eax, esi
cmp eax, ebx
jae 0x100403d5
mov ch, ch
push eax
pop eax
mov dword [esp + 0x14], 0
mov esi, esi
mov eax, eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x290]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x290]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x290]
push eax
mov eax, dword [esp + 0x290]
push ecx
push edx
push eax
push edi
call fcn.1002a4f0
add esp, 0x28
test eax, eax
je 0x100403d5
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push edi
call fcn.1002eee0
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x34], ebx
push ebx
pop ebx
mov ecx, dword [esp + 0x14]
push ecx
call fcn.100aa16b
add esp, 4
mov dh, dh
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
je 0x10040399
mov dword [eax], ebx
add dword [esp + 0x28], 4
jmp 0x100403b1
push 1
push 1
lea edx, [esp + 0x3b]
push edx
lea ecx, [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.1003b5b0
nop
mov edx, dword [esp + 0x28c]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, al
call ebp
xchg ebx, eax
xchg ebx, eax
sub eax, esi
cmp eax, dword [esp + 0x290]
jb 0x10040301
mov eax, dword [esp + 0x28c]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.10037880
add esp, 0xc
mov ebx, eax
mov bh, bh
xor esi, esi
jmp 0x100404d9
mov dl, dl
mov ah, ah
mov dword [esp + 0x14], esi
mov ah, ah
push ebx
pop ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x290]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x290]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x290]
push edx
mov edx, dword [esp + 0x290]
push eax
push ecx
push edx
push edi
call fcn.1002a4f0
add esp, 0x28
test eax, eax
jne 0x10040467
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.1003b300
xor eax, eax
jmp 0x10040522
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push edi
call fcn.1002eee0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x34], edi
nop
mov eax, dword [esp + 0x14]
push eax
call fcn.100aa16b
add esp, 4
mov ah, ah
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
je 0x100404a8
mov dword [eax], edi
add dword [esp + 0x28], 4
jmp 0x100404c0
push 1
push 1
lea ecx, [esp + 0x3b]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.1003b5b0
mov ch, ch
push ebp
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.10037880
add esp, 0xc
mov ebx, eax
mov edx, edx
push eax
pop eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub edx, eax
sar edx, 2
je 0x1004050c
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [eax + esi*4]
push eax
call edi
mov ebx, ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub ecx, eax
add esi, 1
sar ecx, 2
cmp esi, ecx
jb 0x100404f0
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.1003b300
mov eax, ebx
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.100aa646
add esp, 0x25c
ret