Function at 0x402310
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
mov eax, dword [0x40b250]
push ebx
push ebp
push esi
mov esi, dword [0x40b2c8]
cmp esi, eax
push edi
mov edi, dword [0x40a080]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], edi
mov ebp, esi
jge 0x402404
mov ebx, dword [sym.imp.USER32.dll_UpdateLayeredWindow]
imul esi, esi, 0x34
add esi, 0x40a634
lea ecx, [ecx]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4023f3
mov eax, dword [esi + 0x10]
cmp eax, dword [0x40a170]
jge 0x4023e0
mov al, byte [eax + 0x40a150]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 4]
mov byte [esi - 2], al
mov eax, dword [esi]
add eax, ecx
mov ecx, eax
mov dword [esi], eax
add edi, edx
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x1c], edx
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [0x40b2cc]
push 3
mov dword [esp + 0x24], edx
lea edx, [esi - 4]
push edx
push 0
lea eax, [esi - 0x18]
push eax
push ecx
mov ecx, dword [esi - 0x1c]
lea edx, [esi - 0x10]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esi + 4], edi
call ebx
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x18]
inc eax
mov dword [esi + 0x10], eax
jmp 0x4023f3
mov edx, dword [esi - 0x1c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x14], 0
mov eax, dword [0x40b250]
inc ebp
add esi, 0x34
cmp ebp, eax
jl 0x402350
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [0x40a5ec]
and esi, 0xffffff
cmp esi, eax
mov dword [esp + 0x1c], esi
jae 0x402429
sub esi, eax
add esi, 0x1000000
jmp 0x40242b
sub esi, eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x14
call dword [sym.imp.USER32.dll_GetCursorInfo]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [0x40a5f0]
jne 0x402461
mov edx, dword [esp + 0x34]
cmp edx, dword [0x40a5f4]
jne 0x402461
add edi, 0x32
mov dword [esp + 0x14], 1
cmp esi, edi
jb 0x4026ab
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4026ab
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x40a600]
jne 0x4026ab
mov ecx, dword [0x40b2e0]
test ecx, ecx
jne 0x40249b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4026ab
test ecx, ecx
mov edx, dword [0x40b2f0]
movzx eax, byte [edx + 0x40a174]
mov dword [esp + 0x18], 0
jne 0x4024c1
add edi, 0x15e
cmp esi, edi
jb 0x4024c1
add eax, 2
test eax, eax
jle 0x4026ab
mov ecx, dword [0x40b2fc]
mov esi, dword [0x40b2f8]
mov ebp, dword [0x40b2f4]
mov edi, dword [0x40a608]
mov dword [esp + 0x14], eax
mov al, byte [0x40b2e4]
test al, al
je 0x4024f8
dec al
mov dl, al
mov byte [esp + 0x13], dl
jmp 0x402504
mov al, byte [ecx + 0x40a1cc]
mov byte [esp + 0x13], al
mov dl, al
mov al, byte [0x40b2e5]
test al, al
je 0x402513
dec al
mov bl, al
jmp 0x402519
mov bl, byte [esi + 0x40a1b8]
mov al, byte [0x40b2e6]
test al, al
je 0x402526
dec al
jmp 0x40252c
mov al, byte [ebp + 0x40a198]
test dl, dl
je 0x40253c
test bl, bl
jne 0x402546
mov edi, dword [0x40a5fc]
jmp 0x402546
test bl, bl
jne 0x402546
mov edi, dword [0x40a5f8]
xor ecx, ecx
imul edi, edi, 0x34
mov cl, byte [0x40a150]
add edi, 0x40a618
push ecx
mov ecx, dword [0x40a5f4]
push ecx
mov ecx, dword [0x40a5f0]
push ecx
mov cl, al
mov al, bl
call fcn.004021c0
mov edi, dword [0x40a608]
add esp, 0xc
test eax, eax
je 0x402616
mov al, byte [esp + 0x13]
test al, al
je 0x4025cd
test bl, bl
je 0x4025aa
mov eax, dword [0x40b254]
inc edi
cmp edi, eax
mov dword [0x40a608], edi
jl 0x40260e
mov edi, dword [0x40a5e4]
mov dword [0x40a608], edi
jmp 0x40260e
mov eax, dword [0x40a5fc]
mov ecx, dword [0x40a5e0]
inc eax
cmp eax, ecx
mov dword [0x40a5fc], eax
jl 0x40260e
mov edx, dword [0x40b24c]
mov dword [0x40a5fc], edx
jmp 0x40260e
test bl, bl
je 0x4025ef
mov eax, dword [0x40b254]
inc edi
cmp edi, eax
mov dword [0x40a608], edi
jl 0x40260e
mov edi, dword [0x40a5e4]
mov dword [0x40a608], edi
jmp 0x40260e
mov eax, dword [0x40a5f8]
mov ecx, dword [0x40a60c]
inc eax
cmp eax, ecx
mov dword [0x40a5f8], eax
jl 0x40260e
mov eax, dword [0x40b248]
mov dword [0x40a5f8], eax
mov dword [esp + 0x18], 1
mov ebp, dword [0x40b2f4]
mov eax, dword [0x40a1b4]
inc ebp
cmp ebp, eax
mov dword [0x40b2f4], ebp
jl 0x402634
xor ebp, ebp
mov dword [0x40b2f4], ebp
mov esi, dword [0x40b2f8]
mov eax, dword [0x40a1c8]
inc esi
cmp esi, eax
mov dword [0x40b2f8], esi
jl 0x402652
xor esi, esi
mov dword [0x40b2f8], esi
mov ecx, dword [0x40b2fc]
mov eax, dword [0x40a1f0]
inc ecx
cmp ecx, eax
mov dword [0x40b2fc], ecx
jl 0x402670
xor ecx, ecx
mov dword [0x40b2fc], ecx
dec dword [esp + 0x14]
jne 0x4024e5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4026ab
mov eax, dword [0x40b2f0]
mov ecx, dword [0x40a194]
inc eax
cmp eax, ecx
mov dword [0x40b2f0], eax
jl 0x4026a1
mov dword [0x40b2f0], 0
mov ecx, dword [esp + 0x1c]
mov dword [0x40a5ec], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [0x40a5f0], edx
mov dword [0x40a5f4], eax
pop ebx
add esp, 0x28
ret