Function at 0x496a10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x496a18
push ebx
push esi
push edi
mov ebx, 0x49a628
xor eax, eax
push ebp
push 0x496da8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.0042d418
mov eax, dword [ebp - 0x20]
mov edx, 0x496dc0
call fcn.00406acc
test eax, eax
jne 0x496a59
mov byte [ebp - 1], 1
jmp 0x496a7f
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.0042d418
mov eax, dword [ebp - 0x20]
mov edx, 0x496dd0
call fcn.00406acc
test eax, eax
jne 0x496d8d
mov byte [ebp - 1], 0
mov edx, 0x496de0
mov eax, dword [ebx]
call fcn.004242d4
push 5
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
push eax
call fcn.004061fc
call fcn.0047d9a0
push 0x496de8
push 0
push 0
call fcn.00405824
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
push eax
call fcn.004061fc
cmp dword [ebp - 8], 0
je 0x496adf
mov eax, dword [ebx]
call fcn.004244bc
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 8]
push eax
push 1
call fcn.004060a4
dec eax
je 0x496ac1
push 5
mov eax, dword [ebx]
mov eax, dword [eax + 0x20]
push eax
call fcn.004061fc
xor eax, eax
push ebp
push 0x496d86
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.0042d418
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
mov edx, 0x496e08
call fcn.0042c4c4
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.0042d418
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
mov edx, 0x496e18
call fcn.0042c4c4
mov eax, dword [ebp - 0x14]
call fcn.0042ccf0
test al, al
je 0x496d29
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00450c10
test byte [0x49af98], 1
setne al
call fcn.0042ef94
mov edx, dword [0x49ae80]
mov eax, dword [ebx]
call fcn.004242d4
xor eax, eax
push ebp
push 0x496d22
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0047b70c
push 2
push 0
push 1
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, 0x44fb84
call fcn.0044fd8c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x496d08
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x496ce2
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00450030
mov eax, dword [ebp - 0x18]
call fcn.00403574
cmp eax, 4
jle 0x496ce2
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0x5b
jne 0x496ce2
mov eax, dword [ebp - 0x18]
cmp byte [eax + 3], 0x5d
jne 0x496ce2
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0x18]
call fcn.00403778
mov eax, dword [ebp - 0x18]
cmp byte [eax + 2], 0x71
je 0x496c0b
cmp byte [ebp - 1], 0
je 0x496c07
cmp byte [0x49b37e], 0
je 0x496c0b
xor eax, eax
jmp 0x496c0d
mov al, 1
mov byte [ebp - 2], al
xor eax, eax
push ebp
push 0x496c78
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 1]
sub al, 0x53
je 0x496c48
dec al
je 0x496c64
sub al, 0x1f
je 0x496c36
dec al
je 0x496c5a
jmp 0x496c6e
mov al, byte [ebp - 2]
push eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
xor eax, eax
call fcn.00457b10
jmp 0x496c6e
mov al, byte [ebp - 2]
push eax
mov ecx, dword [ebp - 0x1c]
mov dl, 1
xor eax, eax
call fcn.00457b10
jmp 0x496c6e
mov eax, dword [ebp - 0x1c]
call fcn.00455ee4
jmp 0x496c6e
mov edx, dword [ebp - 0x1c]
xor eax, eax
call fcn.00457ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x496ce2
mov eax, dword [ebp - 0xc]
call fcn.00450020
test al, al
je 0x496ba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496d0f
mov eax, dword [ebp - 0xc]
call fcn.00402b58
ret
mov eax, dword [ebp - 0x14]
call fcn.00406f58
mov eax, dword [ebp - 0x10]
call fcn.00406f58
xor eax, eax
push ebp
push 0x496d56
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0049696c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x496d60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496d8d
cmp dword [ebp - 8], 0
je 0x496d85
mov eax, dword [ebp - 8]
push eax
call fcn.00405a8c
mov eax, dword [ebp - 8]
push eax
call fcn.004057e4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496daf
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.00403420
ret