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

Disassembly:
push 0xffffffffffffffff
push 0x5205a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
test esi, esi
mov eax, dword [0x565e78]
mov dword [esp + 0x54], eax
je 0x49b829
push ebx
push ebp
push edi
mov edi, dword [esp + 0x74]
lea ebp, [edi + 0x430]
mov ebx, esi
lea eax, [esp + 0x14]
mov ecx, ebp
mov byte [esp + 0xf], 0
call fcn.0049bb60
mov eax, dword [eax]
mov ecx, dword [edi + 0x434]
cmp eax, ecx
jne 0x49b5bc
push 0x56b6f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x13], 1
call fcn.00402030
xor ebx, ebx
mov dword [esp + 0x6c], ebx
mov ecx, dword [esi + 0x20]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str._04d.png
lea edi, [esp + 0x18]
call fcn.0046d1f0
mov edi, dword [esp + 0x18]
mov eax, edi
add esp, 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x49b4c0
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00401b10
mov ecx, dword [esp + 0x74]
add ecx, 0x194
mov byte [esp + 0x6c], 1
call fcn.004c7a50
push ebp
mov ecx, esi
mov edi, eax
call fcn.0049b970
mov edx, dword [edi]
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x30], 0x10
jb 0x49b521
mov edx, dword [esp + 0x1c]
push edx
call fcn.004fa776
add esp, 4
mov eax, dword [esi]
push eax
push 0x53d5e0
push ebp
mov ecx, esi
call fcn.0049b970
add eax, 4
push eax
call fcn.00405820
mov eax, dword [esi + 0x24]
add esp, 0xc
cmp eax, 0x30
mov eax, 0x549000
je 0x49b54f
mov eax, 0x548ffc
push eax
push ebp
mov ecx, esi
call fcn.0049b970
mov ecx, eax
add ecx, 8
call fcn.00401e80
push ebp
mov ecx, esi
call fcn.0049b970
add eax, 0xc
push 4
push 0x548ff4
mov ecx, eax
call fcn.00401f00
push ebp
mov ecx, esi
call fcn.0049b970
add eax, 0x10
push 0xa
push 0x548fe8
mov ecx, eax
call fcn.00401f00
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b5be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x49b5be
xor ebx, ebx
cmp byte [esi + 0x28], bl
jne 0x49b5fa
push ebp
mov ecx, esi
call fcn.0049b970
add eax, 0x10
push 0xa
push 0x548fdc
mov ecx, eax
call fcn.00401f00
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push ebp
mov ecx, esi
sub edi, 0x7530
call fcn.0049b970
mov dword [eax + 0x14], edi
jmp 0x49b68c
cmp byte [esp + 0xf], bl
jne 0x49b61a
push ebp
mov ecx, esi
call fcn.0049b970
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x14]
cmp eax, 0x7530
jb 0x49b68c
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0x6c], 2
mov eax, dword [0x56bb0c]
mov ecx, dword [esi]
push ebx
lea edx, [esp + 0x38]
push edx
push 0x56b818
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call fcn.0040d610
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ecx, esi
mov edi, eax
call fcn.0049b970
mov dword [eax + 0x14], edi
mov dword [esp + 0x6c], 0xffffffff
cmp dword [esp + 0x5c], 0x10
jb 0x49b68c
mov eax, dword [esp + 0x48]
push eax
call fcn.004fa776
add esp, 4
push ebp
mov ecx, esi
call fcn.0049b970
mov ecx, dword [eax]
push 1
push 1
push ecx
mov ecx, dword [esp + 0x80]
add ecx, 0x210
call fcn.004c8300
push ebp
mov ecx, esi
call fcn.0049b970
mov edi, dword [eax + 4]
add eax, 4
mov eax, edi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x49b6d0
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x3c]
call fcn.00401b10
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x34]
push edx
add ecx, 0x28c
mov dword [esp + 0x70], 3
call fcn.004c85f0
mov dword [esp + 0x6c], 0xffffffff
cmp dword [esp + 0x4c], 0x10
jb 0x49b71c
mov eax, dword [esp + 0x38]
push eax
call fcn.004fa776
add esp, 4
push ebp
mov ecx, esi
call fcn.0049b970
mov edi, dword [eax + 8]
add eax, 8
mov eax, edi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x49b740
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x3c]
call fcn.00401b10
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x78]
add ecx, 0x314
mov dword [esp + 0x70], 4
call fcn.004c85f0
mov dword [esp + 0x6c], 0xffffffff
cmp dword [esp + 0x4c], 0x10
jb 0x49b78c
mov edx, dword [esp + 0x38]
push edx
call fcn.004fa776
add esp, 4
push ebp
mov ecx, esi
call fcn.0049b970
mov edi, dword [eax + 0xc]
add eax, 0xc
mov eax, edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x49b7b0
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00401b10
mov edi, dword [esp + 0x74]
lea eax, [esp + 0x18]
push eax
lea ecx, [edi + 0x39c]
mov dword [esp + 0x70], 5
call fcn.004c85f0
mov dword [esp + 0x6c], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x49b7fc
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004fa776
add esp, 4
push ebp
mov ecx, esi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0049b970
mov edx, dword [eax + 0x10]
add eax, 0x10
push edx
lea ecx, [edi + 0x3e0]
call fcn.004fb093
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x54]
call fcn.004b6cac
add esp, 0x64
ret 4