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

Disassembly:
sub esp, 0x70
push esi
xor esi, esi
push edi
mov dword [esp + 8], esi
push edx
pop edx
mov dword [esp + 0xc], esi
push eax
pop eax
test esi, esi
mov dword [esp + 0x34], 1
mov ch, ch
xor edi, edi
mov dword [esp + 0x18], edi
push ecx
pop ecx
mov dword [esp + 0x1c], esi
mov ah, ah
call fcn.100369a0
push ecx
pop ecx
call fcn.10036fc0
test eax, 0x30b0
mov ah, ah
push ecx
pop ecx
mov eax, dword [0x101d8b98]
mov dword [esp + 0x20], eax
mov cl, cl
cmp dword [0x101d8364], esi
mov dword [esp + 0x30], esi
jl 0x1003b7dc
push ebx
push ebp
nop
mov ecx, dword [esp + 0x28]
push ecx
push esi
call fcn.10036650
mov ebp, eax
add esp, 8
mov dword [esp + 0x48], ebp
test eax, eax
test ebp, ebp
je 0x1003b635
cmp dword [esp + 0x10], 0
jne 0x1003b167
mov eax, dword [esp + 0x84]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x10]
push ecx
push 0x10083a60
push eax
call edx
test eax, eax
test eax, eax
jl 0x1003b681
push esi
call fcn.10036820
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
mov ecx, ecx
test ebx, ebx
jne 0x1003b18c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dl, dl
test esi, esi
jmp 0x1003b635
push 0
push 0
push 0
push 6
push ebx
call fcn.1002d860
mov esi, eax
mov dword [esp + 0x4c], esi
mov edx, edx
test esi, esi
jne 0x1003b1bb
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
test cl, cl
push ebx
call esi
test edx, edx
jmp 0x1003b631
cmp dword [esp + 0x14], 0
jne 0x1003b1e2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov eax, dword [ecx + 0x98]
call eax
test ebx, ebx
test eax, eax
jl 0x1003b691
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov ch, ch
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov esi, esi
mov dh, dh
mov eax, dword [esp + 0x60]
cmp eax, 0x16
je 0x1003b232
cmp eax, 0x15
je 0x1003b232
cmp eax, 0x17
jne 0x1003b6b0
mov ecx, ecx
push esi
call fcn.100368d0
add esp, 4
mov ebp, ebp
test eax, eax
je 0x1003b6d1
cmp eax, 0xb
jne 0x1003b28b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1003b26a
mov bl, bl
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test cl, cl
mov dword [esp + 0x24], 0
mov bh, bh
test edi, edi
je 0x1003b28b
mov edx, edx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov bh, bh
mov dword [esp + 0x20], 0
test eax, 0x2e9d
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
cmp edx, dword [esi + 0x14]
jb 0x1003b793
mov eax, dword [esp + 0x7c]
cmp eax, dword [esi + 0x18]
jb 0x1003b793
test edi, edi
jne 0x1003b339
mov dword [esp + 0x18], edi
test edx, edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x68]
push edi
push edi
push edi
push edx
mov edx, dword [esp + 0x94]
push edx
mov edx, dword [esp + 0x94]
push edx
push eax
mov eax, dword [ecx + 0x70]
call eax
xchg ebx, eax
xchg ebx, eax
test eax, eax
jl 0x1003b6ee
mov dword [esp + 0x1c], edi
mov cl, cl
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x68]
push 2
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
push edx
push eax
mov eax, dword [ecx + 0x90]
call eax
test cl, cl
test eax, eax
jl 0x1003b710
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
push ecx
pop ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
test edi, edi
mov edi, edx
cmp dword [esp + 0x3c], 0
je 0x1003b392
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push 0
push edx
mov edx, dword [esp + 0x20]
push 0
push edx
push eax
mov eax, dword [ecx + 0x88]
call eax
test cl, cl
test eax, eax
jl 0x1003b73a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edi
push edx
push eax
mov eax, dword [ecx + 0x80]
call eax
mov cl, cl
test eax, eax
jl 0x1003b756
mov dword [esp + 0x3c], 0
test ah, ah
test eax, 0x6127
mov ecx, dword [edi]
mov eax, dword [ecx + 0x34]
push 0x10
push 0
lea edx, [esp + 0x60]
push edx
push edi
call eax
test ecx, ecx
test eax, eax
jl 0x1003b777
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call fcn.100367c0
add esp, 8
test eax, eax
je 0x1003b60f
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
test eax, eax
mov edx, dword [edi]
mov ecx, dword [edx + 0x30]
lea eax, [esp + 0x60]
push eax
push edi
call ecx
mov esi, esi
mov ebp, dword [esp + 0x5c]
test cl, cl
mov edx, dword [esp + 0x58]
mov dword [esp + 0x40], edx
mov dh, dh
lea ebx, [esi + 0x24]
mov dword [esp + 0x34], ebx
nop
mov eax, dword [esi + 0x14]
add eax, eax
add eax, eax
mov dword [esp + 0x50], eax
test edx, edx
mov al, al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, 0x386e
test dh, dh
test ecx, ecx
mov ah, ah
mov eax, dword [esp + 0x88]
test eax, eax
je 0x1003b476
mov ecx, dword [eax]
mov edx, dword [eax + 8]
sub edx, ecx
cmp edx, dword [esi + 0x14]
jb 0x1003b476
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 4]
cmp edx, dword [esi + 0x18]
jb 0x1003b476
cmp dword [esp + 0x60], 0x17
jne 0x1003b464
lea ebp, [ebp + ecx*2]
mov esi, esi
jmp 0x1003b46a
lea ebp, [ebp + ecx*4]
mov ecx, ecx
mov eax, dword [eax + 4]
imul eax, dword [esp + 0x40]
add ebp, eax
mov esi, esi
mov eax, dword [esi + 0x18]
mov edx, edx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x30], ecx
mov dl, dl
test dl, dl
mov dword [esi + 0x20], 0
mov ecx, ecx
cmp dword [esp + 0x60], 0x17
jne 0x1003b49f
mov dword [esi + 0x20], 1
push ebx
pop ebx
cmp dword [esp + 0x28], 0
jne 0x1003b4af
mov dword [esi + 0x20], 0
push eax
pop eax
test eax, eax
jbe 0x1003b5e0
mov dword [esp + 0x44], eax
jmp 0x1003b4c4
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x60], 0x17
jne 0x1003b668
cmp dword [esp + 0x28], 0
jne 0x1003b64d
test bl, bl
xor edi, edi
cmp dword [esp + 0x30], edi
jbe 0x1003b5c1
movzx eax, word [ebp + edi*2]
test dl, dl
movzx eax, ax
mov ecx, eax
shr ecx, 8
and ecx, 0xf8
mov dl, dl
mov ebx, eax
shr ebx, 3
and ebx, 0xfc
test dh, dh
and eax, 0x1f
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x2c], eax
test dh, dh
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
add ecx, eax
push edx
pop edx
mov eax, 0x4104105
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
add ebx, eax
push eax
pop eax
mov eax, 0x8421085
mul dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov esi, edx
mov edx, eax
sub edx, esi
shr edx, 1
add edx, esi
shr edx, 4
add eax, edx
mov ecx, ecx
cmp ecx, 0xff
jbe 0x1003b574
mov ecx, 0xff
test edi, edi
cmp ebx, 0xff
jbe 0x1003b583
mov ebx, 0xff
mov dl, dl
cmp eax, 0xff
jbe 0x1003b598
mov dword [esp + 0x2c], 0xff
test eax, eax
mov eax, dword [esp + 0x2c]
xor edx, edx
mov dh, cl
mov ecx, dword [esp + 0x34]
movzx eax, al
mov dl, bl
shl edx, 8
or edx, eax
mov dword [ecx + edi*4], edx
nop
add edi, 1
cmp edi, dword [esp + 0x30]
jb 0x1003b4e8
mov esi, dword [esp + 0x4c]
mov ebx, ecx
mov edi, dword [esp + 0x20]
add ebp, dword [esp + 0x40]
test ebx, ebx
add ebx, dword [esp + 0x50]
mov dword [esp + 0x34], ebx
test esi, esi
sub dword [esp + 0x44], 1
jne 0x1003b4c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ecx
mov edx, edx
mov dword [esi + 0x1c], 1
mov dl, dl
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.100367f0
add esp, 8
mov ecx, ecx
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x54]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x38]
push edi
call edx
mov bl, bl
push esi
call fcn.1002d890
test edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov edi, edi
push ebp
call esi
test eax, eax
mov esi, dword [esp + 0x38]
add esi, 1
cmp esi, dword [0x101d8364]
mov dword [esp + 0x38], esi
jle 0x1003b120
jmp 0x1003b7ad
lea eax, [ecx*4]
shr eax, 1
push eax
push ebp
push ebx
call fcn.1005f780
add esp, 0xc
mov ebx, ebx
jmp 0x1003b5c5
lea eax, [ecx*4]
push eax
push ebp
push ebx
call fcn.1005f780
add esp, 0xc
test bl, bl
jmp 0x1003b5c5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
pop eax
mov ebp, ebp
jmp 0x1003b7ad
test ecx, ecx
push esi
call fcn.1002d890
test dl, dl
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebx
pop ebx
push ebp
call esi
test bl, bl
jmp 0x1003b7ad
test eax, 0x68fc
push esi
call fcn.1002d890
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
nop
push ebp
call esi
test ah, ah
jmp 0x1003b7ad
push esi
call fcn.1002d890
mov ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
test eax, eax
push ebp
call esi
mov dl, dl
jmp 0x1003b7ad
mov edx, edx
push esi
call fcn.1002d890
test dl, dl
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
test eax, 0x35c0
push ebp
call esi
push ebx
pop ebx
jmp 0x1003b7ad
mov bl, bl
push esi
call fcn.1002d890
test ah, ah
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov edi, edi
push ebp
call esi
mov bl, bl
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test eax, eax
jmp 0x1003b7ad
test bl, bl
push esi
call fcn.1002d890
mov dh, dh
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ah, ah
push ebp
call esi
mov al, al
jmp 0x1003b7ad
push ecx
pop ecx
mov al, al
push esi
call fcn.1002d890
test al, al
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ah, ah
push ebp
call esi
test eax, 0x7a33
jmp 0x1003b7ad
push esi
call fcn.1002d890
mov eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
test dh, dh
push ebp
call esi
mov dl, dl
test ecx, ecx
jmp 0x1003b7ad
test bh, bh
push esi
call fcn.1002d890
mov edx, edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov ebp, ebp
push ebp
call esi
mov al, al
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
pop ebp
pop ebx
je 0x1003b7c7
test dh, dh
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push eax
pop eax
mov dh, dh
cmp edi, esi
je 0x1003b7dc
mov ebx, ebx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
push eax
pop eax
test eax, 0x2fd4
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x1003b7ee
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ch, ch
mov eax, dword [esp + 8]
pop edi
cmp eax, esi
pop esi
je 0x1003b802
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov bl, bl
add esp, 0x70
ret